Function at 0x423a5a
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 [0x449738]
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 [0x449740]
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.0042fc9e
add esp, 4
push 0x44b4d0
lea edx, [ebp - 0x554]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push 0x441900
lea eax, [ebp - 0x554]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
cmp dword [0x448b1c], 0
je 0x423b36
push 0x449c20
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x423b77
push 0x449c20
call dword [0x4492b4]
test eax, eax
jne 0x423b77
cmp dword [0x448b20], 0
je 0x423b6c
cmp dword [0x44b6e0], 0
je 0x423b6c
lea ecx, [ebp - 0x148]
push ecx
push 0x44191c
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x449c20
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x448b20], 0
je 0x423b9e
cmp dword [0x44b6e0], 0
je 0x423b9e
lea edx, [ebp - 0x148]
push edx
push 0x441958
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov eax, dword [0x449da8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x423bf0
lea ecx, [ebp - 0x554]
push ecx
call dword [sym.imp.SQLUNIRL.dll__DeleteFile_4]
push 0x449c20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x448b20], 0
je 0x423beb
cmp dword [0x44b6e0], 0
je 0x423beb
lea edx, [ebp - 0x148]
push edx
push 0x44198c
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
jmp 0x423da4
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 0x423d72
push 0x100
lea ecx, [ebp - 0x10c]
push ecx
push 0x449744
push 0x4419c0
push 0x4419c4
call fcn.0042f530
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 0x423cf7
mov edx, dword [ebp - 0x150]
add edx, 1
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x150]
cmp eax, dword [ebp - 8]
jge 0x423d65
mov ecx, dword [ebp - 0x150]
push ecx
push 0x449da0
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x423d63
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 0x423d63
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 0x423ce8
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x449c20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x448b20], 0
je 0x423da4
cmp dword [0x44b6e0], 0
je 0x423da4
lea ecx, [ebp - 0x148]
push ecx
push 0x4419d8
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret