Function at 0x4231b6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
push esi
push edi
mov ecx, 0xe
mov esi, str.FlushMSXOperationCacheToDisk
lea edi, [ebp - 0x148]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x44bc54]
mov word [ebp - 0x554], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x552]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44bc5c]
mov word [ebp - 0x10c], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x150], 0
push str.FlushMSXOperationCacheToDisk___n
call fcn.004303d5
add esp, 4
push 0x44da74
lea edx, [ebp - 0x554]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push 0x443360
lea eax, [ebp - 0x554]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
cmp dword [0x44b08c], 0
je 0x423292
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x4232d3
push 0x44c1c0
call dword [0x44b824]
test eax, eax
jne 0x4232d3
cmp dword [0x44b090], 0
je 0x4232c8
cmp dword [0x44dc84], 0
je 0x4232c8
lea ecx, [ebp - 0x148]
push ecx
push 0x44337c
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44b090], 0
je 0x4232fa
cmp dword [0x44dc84], 0
je 0x4232fa
lea edx, [ebp - 0x148]
push edx
push 0x4433b8
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov eax, dword [0x44c348]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42334c
lea ecx, [ebp - 0x554]
push ecx
call dword [sym.imp.SQLUNIRL.dll__DeleteFile_4]
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44b090], 0
je 0x423347
cmp dword [0x44dc84], 0
je 0x423347
lea edx, [ebp - 0x148]
push edx
push 0x4433ec
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
jmp 0x423500
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x554]
push eax
call dword [sym.imp.SQLUNIRL.dll__CreateFile_28]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
je 0x4234ce
push 0x100
lea ecx, [ebp - 0x10c]
push ecx
push 0x44bc60
push 0x443420
push 0x443424
call fcn.0042fc50
add esp, 0x14
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 4
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
cdq
mov ecx, 0x186a0
idiv ecx
mov ecx, eax
imul ecx, ecx, 0xf4240
mov eax, dword [ebp - 0x14c]
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 - 0x14c]
cdq
mov esi, 0x3e8
idiv esi
add ecx, edx
mov dword [ebp - 0x14c], ecx
push 0
lea edx, [ebp - 4]
push edx
push 4
lea eax, [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x154]
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 - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x150], 0
jmp 0x423453
mov edx, dword [ebp - 0x150]
add edx, 1
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x150]
cmp eax, dword [ebp - 8]
jge 0x4234c1
mov ecx, dword [ebp - 0x150]
push ecx
push 0x44c340
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4234bf
push 0
lea edx, [ebp - 4]
push edx
push 0x28
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x4234bf
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x423444
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44b090], 0
je 0x423500
cmp dword [0x44dc84], 0
je 0x423500
lea ecx, [ebp - 0x148]
push ecx
push 0x443438
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret