Function at 0x427600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475710
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
call fcn.00427a00
xor esi, esi
mov dword [esp + 0x60], esi
mov ecx, dword [ebx + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
jne 0x427801
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esp + 0x10]
lea ecx, [ebx + 0x34]
cmp edx, ecx
je 0x4276b5
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov dword [ecx], eax
cmp edx, eax
je 0x427687
mov edi, dword [eax]
mov esi, dword [edx]
mov dword [edx], edi
mov dword [eax], esi
lea eax, [ecx + 0x14]
lea edx, [esp + 0x24]
cmp edx, eax
je 0x42769e
mov edx, dword [esp + 0x24]
mov esi, dword [eax]
mov dword [esp + 0x24], esi
mov dword [eax], edx
lea eax, [ecx + 0x18]
lea ecx, [esp + 0x28]
cmp ecx, eax
je 0x4276b5
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov dword [eax], ecx
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
cmp dword [esp + 0x28], esi
je 0x4277e8
cmp dword [ebx + 8], esi
jne 0x4276f6
mov eax, dword [ebx + 0x18]
push 0x47d780
push eax
call fcn.0045d2d0
add esp, 8
mov dword [ebx + 8], eax
cmp eax, esi
je 0x42765a
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], esi
mov byte [esp + 0x38], 0
mov byte [esp + 0x60], 1
cmp dword [esp + 0x28], esi
je 0x4277a8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx]
test eax, eax
jne 0x4277e1
call fcn.0045a9dd
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x427739
call fcn.0045a9dd
push 0xffffffffffffffff
lea eax, [esi + 8]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.00404910
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea eax, [esp + 0x34]
push eax
lea edi, [esp + 0x1c]
call fcn.00427b50
cmp dword [esp + 0x4c], 0x10
mov ecx, dword [esp + 0x38]
jae 0x427773
lea ecx, [esp + 0x38]
mov eax, dword [ebx + 8]
test eax, eax
je 0x42779d
mov edx, dword [esp + 0x48]
push eax
push edx
push 1
push ecx
call fcn.0045d449
mov eax, dword [ebx + 8]
push eax
push 2
push 1
push 0x47d788
call fcn.0045d449
add esp, 0x20
cmp dword [esp + 0x28], 0
jne 0x427716
mov eax, dword [ebx + 8]
test eax, eax
je 0x4277bf
push eax
call fcn.0045cc2d
add esp, 4
mov dword [ebx + 8], 0
mov byte [esp + 0x60], 0
cmp dword [esp + 0x4c], 0x10
jb 0x42765a
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00459f85
add esp, 4
jmp 0x42765a
mov eax, dword [eax]
jmp 0x42772f
cmp dword [ebx + 4], esi
jne 0x427801
mov edx, dword [ebx + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42765a
lea eax, [esp + 0x10]
push eax
call fcn.00427c30
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00459f85
mov edx, dword [esp + 0x14]
add esp, 4
push edx
mov dword [esp + 0x28], esi
call fcn.00459f85
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004599ac
mov esp, ebp
pop ebp
ret