Function at 0x42090f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push esi
push edi
mov ecx, 0xa
mov esi, str.StoreOperationCache
lea edi, [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x44bb88]
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 [0x44bb90]
mov word [ebp - 0x88], cx
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xb8], 0
push 0x44da74
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push str.SQLCACHE.BIN
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov ecx, dword [0x44c388]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4209f4
mov edx, dword [ebp - 8]
push edx
push 0x75
push 0
push 2
call fcn.0041bfab
add esp, 0x10
push 0
call fcn.0042079f
add esp, 4
mov eax, dword [0x44c388]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x420d92
mov ecx, dword [ebp - 8]
push ecx
push 0x76
push 0
push 2
call fcn.0041bfab
add esp, 0x10
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.MSVCRT.dll__wcslwr]
add esp, 4
push eax
push 0x77
push 0
push 2
call fcn.0041bfab
add esp, 0x10
push 0
push 0x80
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 - 0xc0], eax
cmp dword [ebp - 0xc0], 0xffffffff
je 0x420c75
push 0x80
lea ecx, [ebp - 0x88]
push ecx
push 0x44bb94
push 0x4422c4
push 0x4422c8
call fcn.0042fc50
add esp, 0x14
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 4
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
cdq
mov ecx, 0x186a0
idiv ecx
mov ecx, eax
imul ecx, ecx, 0xf4240
mov eax, dword [ebp - 0xbc]
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 - 0xbc]
cdq
mov esi, 0x3e8
idiv esi
add ecx, edx
mov dword [ebp - 0xbc], ecx
push 0
lea edx, [ebp - 4]
push edx
push 4
lea eax, [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
push 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x44b08c], 0
je 0x420b39
push 0x44c260
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x420b7a
push 0x44c260
call dword [0x44b824]
test eax, eax
jne 0x420b7a
cmp dword [0x44b090], 0
je 0x420b6f
cmp dword [0x44dc84], 0
je 0x420b6f
lea edx, [ebp - 0xb0]
push edx
push 0x4422dc
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x44c260
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44b090], 0
je 0x420ba1
cmp dword [0x44dc84], 0
je 0x420ba1
lea eax, [ebp - 0xb0]
push eax
push 0x442318
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov dword [ebp - 0xb4], 0
jmp 0x420bbc
mov ecx, dword [ebp - 0xb4]
add ecx, 1
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
cmp edx, dword [0x44c388]
jge 0x420c36
mov eax, dword [ebp - 0xb4]
push eax
push 0x44c380
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x420c31
push 0
lea ecx, [ebp - 4]
push ecx
push 0x14
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x420bad
push 0x44c260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44b090], 0
je 0x420c68
cmp dword [0x44dc84], 0
je 0x420c68
lea ecx, [ebp - 0xb0]
push ecx
push 0x44234c
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov edx, dword [ebp - 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x44b08c], 0
je 0x420c8b
push 0x44c260
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x420ccc
push 0x44c260
call dword [0x44b824]
test eax, eax
jne 0x420ccc
cmp dword [0x44b090], 0
je 0x420cc1
cmp dword [0x44dc84], 0
je 0x420cc1
lea eax, [ebp - 0xb0]
push eax
push 0x442380
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x44c260
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44b090], 0
je 0x420cf3
cmp dword [0x44dc84], 0
je 0x420cf3
lea ecx, [ebp - 0xb0]
push ecx
push 0x4423bc
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov dword [ebp - 0xb4], 0
jmp 0x420d0e
mov edx, dword [ebp - 0xb4]
add edx, 1
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
cmp eax, dword [0x44c388]
jge 0x420d60
mov ecx, dword [ebp - 0xb4]
push ecx
push 0x44c380
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x420d5e
mov edx, dword [ebp - 0xb8]
cmp dword [edx + 0xc], 0
je 0x420d5e
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.0042138d
add esp, 4
jmp 0x420cff
push 0x44c260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44b090], 0
je 0x420d92
cmp dword [0x44dc84], 0
je 0x420d92
lea edx, [ebp - 0xb0]
push edx
push 0x4423f0
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret