Function at 0x41ff81
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 [0x449618]
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 [0x449620]
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 0x44b4d0
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 [0x449de8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x420066
mov edx, dword [ebp - 8]
push edx
push 0x75
push 0
push 2
call fcn.0041b8d1
add esp, 0x10
push 0
call fcn.0041fe11
add esp, 4
mov eax, dword [0x449de8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x420404
mov ecx, dword [ebp - 8]
push ecx
push 0x76
push 0
push 2
call fcn.0041b8d1
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.0041b8d1
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 0x4202e7
push 0x80
lea ecx, [ebp - 0x88]
push ecx
push 0x449624
push 0x43f44c
push 0x43f450
call fcn.0042f530
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 [0x448b1c], 0
je 0x4201ab
push 0x449cc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x4201ec
push 0x449cc0
call dword [0x4492b4]
test eax, eax
jne 0x4201ec
cmp dword [0x448b20], 0
je 0x4201e1
cmp dword [0x44b6e0], 0
je 0x4201e1
lea edx, [ebp - 0xb0]
push edx
push 0x43f464
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x449cc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x448b20], 0
je 0x420213
cmp dword [0x44b6e0], 0
je 0x420213
lea eax, [ebp - 0xb0]
push eax
push 0x43f4a0
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov dword [ebp - 0xb4], 0
jmp 0x42022e
mov ecx, dword [ebp - 0xb4]
add ecx, 1
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
cmp edx, dword [0x449de8]
jge 0x4202a8
mov eax, dword [ebp - 0xb4]
push eax
push 0x449de0
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x4202a3
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 0x42021f
push 0x449cc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x448b20], 0
je 0x4202da
cmp dword [0x44b6e0], 0
je 0x4202da
lea ecx, [ebp - 0xb0]
push ecx
push 0x43f4d4
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 [0x448b1c], 0
je 0x4202fd
push 0x449cc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x42033e
push 0x449cc0
call dword [0x4492b4]
test eax, eax
jne 0x42033e
cmp dword [0x448b20], 0
je 0x420333
cmp dword [0x44b6e0], 0
je 0x420333
lea eax, [ebp - 0xb0]
push eax
push 0x43f508
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x449cc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x448b20], 0
je 0x420365
cmp dword [0x44b6e0], 0
je 0x420365
lea ecx, [ebp - 0xb0]
push ecx
push 0x43f544
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov dword [ebp - 0xb4], 0
jmp 0x420380
mov edx, dword [ebp - 0xb4]
add edx, 1
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
cmp eax, dword [0x449de8]
jge 0x4203d2
mov ecx, dword [ebp - 0xb4]
push ecx
push 0x449de0
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x4203d0
mov edx, dword [ebp - 0xb8]
cmp dword [edx + 0xc], 0
je 0x4203d0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004209ff
add esp, 4
jmp 0x420371
push 0x449cc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x448b20], 0
je 0x420404
cmp dword [0x44b6e0], 0
je 0x420404
lea edx, [ebp - 0xb0]
push edx
push 0x43f578
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret