Function at 0x422350
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x44d558]
mov dword [ebp - 0x10], eax
push esi
push edi
mov ecx, 0xa
mov esi, str.StoreOperationCache
lea edi, [ebp - 0xc0]
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x44e98c]
mov word [ebp - 0x2c8], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x2c6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44e994]
mov word [ebp - 0x90], cx
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x8e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 8], 0
push 0x450878
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push str.SQLCACHE.BIN
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
mov ecx, dword [0x44f188]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x42243c
mov edx, dword [ebp - 4]
push edx
push 0x75
push 0
push 2
call fcn.0041d760
add esp, 0x10
push 0
call fcn.004221b0
add esp, 4
mov eax, dword [0x44f188]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4227aa
mov ecx, dword [ebp - 4]
push ecx
push 0x76
push 0
push 2
call fcn.0041d760
add esp, 0x10
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.MSVCR71.dll__wcslwr]
add esp, 4
push eax
push 0x77
push 0
push 2
call fcn.0041d760
add esp, 0x10
push 0
push 0x100080
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.SQLUNIRL.dll__CreateFile_28]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0xffffffff
je 0x4226a8
push 0x80
lea ecx, [ebp - 0x90]
push ecx
push 0x44e998
push 0x445354
push 0x445358
call fcn.004321e0
add esp, 0x14
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.MSVCR71.dll__wtol]
add esp, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
cdq
mov ecx, 0x186a0
idiv ecx
mov ecx, eax
imul ecx, ecx, 0xf4240
mov eax, dword [ebp - 0x94]
cdq
mov esi, 0x186a0
idiv esi
mov eax, edx
cdq
mov esi, 0x3e8
idiv esi
imul eax, eax, 0x2710
add ecx, eax
mov eax, dword [ebp - 0x94]
cdq
mov esi, 0x3e8
idiv esi
add ecx, edx
mov dword [ebp - 0x94], ecx
push 0
lea edx, [ebp - 0x2cc]
push edx
push 4
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x2cc]
push edx
push 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x44de90], 0
je 0x422587
push 0x44f060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x4225c8
push 0x44f060
call dword [0x44e628]
test eax, eax
jne 0x4225c8
cmp dword [0x44de94], 0
je 0x4225bd
cmp dword [0x450a88], 0
je 0x4225bd
lea edx, [ebp - 0xc0]
push edx
push 0x445370
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
push 0x44f060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44de94], 0
je 0x4225ef
cmp dword [0x450a88], 0
je 0x4225ef
lea eax, [ebp - 0xc0]
push eax
push 0x4453ac
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x422601
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x44f188]
jge 0x422669
mov eax, dword [ebp - 0xc]
push eax
push 0x44f180
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x422667
push 0
lea ecx, [ebp - 0x2cc]
push ecx
push 0x14
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4225f8
push 0x44f060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44de94], 0
je 0x42269b
cmp dword [0x450a88], 0
je 0x42269b
lea ecx, [ebp - 0xc0]
push ecx
push 0x4453e0
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x44de90], 0
je 0x4226be
push 0x44f060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x4226ff
push 0x44f060
call dword [0x44e628]
test eax, eax
jne 0x4226ff
cmp dword [0x44de94], 0
je 0x4226f4
cmp dword [0x450a88], 0
je 0x4226f4
lea eax, [ebp - 0xc0]
push eax
push 0x445414
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
push 0x44f060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44de94], 0
je 0x422726
cmp dword [0x450a88], 0
je 0x422726
lea ecx, [ebp - 0xc0]
push ecx
push 0x445450
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x422738
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x44f188]
jge 0x422778
mov ecx, dword [ebp - 0xc]
push ecx
push 0x44f180
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x422776
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 0
je 0x422776
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00422e50
add esp, 4
jmp 0x42272f
push 0x44f060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44de94], 0
je 0x4227aa
cmp dword [0x450a88], 0
je 0x4227aa
lea edx, [ebp - 0xc0]
push edx
push 0x445484
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
mov ecx, dword [ebp - 0x10]
call fcn.00434de1
pop edi
pop esi
mov esp, ebp
pop ebp
ret