Function at 0x45cee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x5c2460]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
push ebx
call fcn.0045d7a0
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esi + 0xc]
push eax
call fcn.0041d2a0
mov eax, dword [0x768cbc]
test eax, eax
je 0x45cf47
lea ecx, [esp + 0x10]
push ecx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
jne 0x45d061
call fcn.0045cbe0
cmp dword [0x768cb4], 0
jne 0x45cf65
push 0xffffffffffffffff
push dword [0x768cc4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x45cf71
push dword [0x768ccc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0045cd90
test al, al
je 0x45cfb2
push 2
push 0
push 0
push dword [0x768cc8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x768cc8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x768cb4], 0
jne 0x45cfc9
push dword [0x768cc4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x45cfd5
push dword [0x768ccc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi], 3
jne 0x45d061
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x45d00d
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00511600
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.0042dd10
add esp, 4
cmp dword [0x768cc0], 0
je 0x45d053
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0xc]
call fcn.0041d2a0
lea eax, [esp + 0x28]
push eax
call dword [0x768cc0]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x45d061
push dword [esp + 0x28]
call fcn.0050269b
add esp, 4
jmp 0x45d061
cmp byte [0x768f84], 0
jne 0x45d165
int3
cmp dword [esp + 0x24], 0x10
jb 0x45d074
push dword [esp + 0x10]
call fcn.0050269b
add esp, 4
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
lea esi, [ebx + 0x50]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x548dc8
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 0x54], eax
test byte [esi - 0x10], 1
mov dword [esi - 0x4c], 0x548dcc
je 0x45d0b7
mov eax, dword [esi - 0x40]
push dword [eax]
call fcn.0050269b
add esp, 4
mov eax, dword [esi - 0x40]
mov dword [eax], 0
mov eax, dword [esi - 0x30]
mov dword [eax], 0
mov eax, dword [esi - 0x20]
mov dword [eax], 0
mov eax, dword [esi - 0x3c]
mov dword [eax], 0
mov eax, dword [esi - 0x2c]
mov dword [eax], 0
mov eax, dword [esi - 0x1c]
mov dword [eax], 0
and dword [esi - 0x10], 0xfffffffe
mov edi, dword [esi - 0x18]
mov dword [esi - 0x14], 0
mov dword [esi - 0x4c], 0x548d8c
test edi, edi
je 0x45d126
mov ecx, dword [edi]
test ecx, ecx
je 0x45d11d
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x45d11d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push edi
call fcn.0050269b
add esp, 4
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x548e14
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], 0x548e10
call fcn.005205cc
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
push 1
call fcn.00505223
int3