Function at 0x45f0ea
Capabilities:
Write file on windows

Disassembly:
push 0x58
mov eax, 0x481cf0
call fcn.00462feb
mov eax, ecx
mov dword [ebp - 0x34], eax
cmp byte [eax + 0x20], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x50], ecx
je 0x45f372
push ecx
lea ecx, [ebp - 0x48]
call fcn.0045c6d3
or dword [ebp - 0x3c], 0xffffffff
lea eax, [ebp - 0x3c]
xor ebx, ebx
lea ecx, [ebp - 0x48]
push eax
mov dword [ebp - 4], ebx
call fcn.0045c75b
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x45f366
sub eax, 8
je 0x45f1e9
dec eax
jne 0x45f358
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x48]
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0045c720
mov edi, 0x4b99c4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x64]
push ecx
mov eax, dword [eax + 0x5c]
mov ecx, eax
mov dword [ebp - 0x2c], eax
mov esi, dword [eax]
call fcn.00460775
cmp dword [eax], esi
je 0x45f1a6
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004606f0
mov ebx, dword [eax]
test ebx, ebx
jne 0x45f1b6
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45f366
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x10]
jne 0x45f1da
mov ecx, dword [ebx + 0x28]
lea eax, [ebx + 0x18]
push eax
call fcn.0046072d
mov ecx, ebx
call fcn.0045ec93
push ebx
call fcn.0040e9f1
pop ecx
jmp 0x45f1e3
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
jmp 0x45f352
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4b9994
call esi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x48]
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push eax
call fcn.0045c720
mov edi, 0x4b99c4
push edi
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x60]
push ecx
mov eax, dword [eax + 0x5c]
mov ecx, eax
mov dword [ebp - 0x38], eax
mov esi, dword [eax]
call fcn.00460775
cmp dword [eax], esi
jne 0x45f24f
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4b9994
call esi
push edi
call esi
jmp 0x45f366
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004606f0
push edi
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x45f34d
lea eax, [ebp - 0x58]
mov dword [ebp - 0x28], ebx
xorps xmm0, xmm0
lea ecx, [ebp - 0x48]
push eax
movlpd qword [ebp - 0x58], xmm0
call fcn.0045c7b8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.0045c75b
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x48]
push dword [ebp - 0x28]
push dword [eax + 0x54]
call fcn.0045c720
push ebx
push ebx
push dword [ebp - 0x58]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [esi + 0x24]
push dword [ebp - 0x28]
push dword [eax + 0x54]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
add dword [esi + 0x14], eax
call fcn.0045c6ec
push 9
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0045c7e9
push 0x10
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045c86b
mov ecx, dword [esi + 0x24]
lea eax, [ebp - 0x30]
push eax
call fcn.00403510
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0045c702
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x10]
jne 0x45f345
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x5c]
call fcn.0046072d
mov ecx, esi
call fcn.0045ec93
push esi
call fcn.0040e9f1
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4b9994
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x4c]
call fcn.00403477
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0045c6f6
call fcn.00462f9a
ret 8