Function at 0x43728b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
mov dword [ebx + 4], 3
lea edi, [ebx + 0x20]
mov dword [edi], ecx
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x54], ecx
or dword [ebx + 0x58], 0xffffffff
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test dword [esi + 0x2c], 0x180000
jne 0x493eba
mov edi, dword [0x413aa0]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x413aa4]
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], ecx
test eax, eax
je 0x437320
cmp eax, 1
je 0x493ef5
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov ecx, ebx
call fcn.004373ba
add esp, 0xc
test eax, eax
jne 0x437398
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0x2c]
mov edx, 0x1100000
and eax, edx
cmp eax, edx
je 0x493f0c
test dword [esi + 0x2c], 0x1000000
jne 0x493f7c
test dword [esi + 0x2c], 0x100000
lea eax, [ebx + 0x20]
mov edx, dword [esi + 0x94]
push eax
push 0
push edi
push ecx
push edx
jne 0x493fa4
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43739d
and dword [ebx + 0x34], 0
test dword [esi + 0x2c], 0x80000
jne 0x494002
mov ecx, dword [esi + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
je 0x494026
mov eax, dword [ebp - 4]
inc dword [eax + 0x10]
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4373b2
mov dword [ebx + 0x34], edi
add dword [esi + 0x30], edi
jmp 0x437369
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x437398
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x54], eax
test eax, eax
jne 0x493eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x40ef8c
jmp 0x493ee3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x40ef3c
mov ecx, eax
call fcn.0052863b
or eax, 1
mov dword [ebx + 0x30], eax
jmp 0x4372d7
cmp dword [ebp + 0x18], 0
jne 0x4372f9
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x437320
push 0
lea eax, [ebp + 8]
push eax
push edi
push ecx
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4373b2
xor edx, edx
mov dword [ebx + 0x34], edx
mov ecx, dword [esi + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x493f51
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x493f51
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x493f51
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov ecx, dword [ebp - 4]
lea eax, [ebx + 0x20]
push eax
push edx
push edx
inc dword [ecx + 0x10]
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
push dword [ecx + 0x1c]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x437396
jmp 0x493ed8
mov dword [ebx + 0x4c], edi
mov edx, ebx
mov dword [ebx + 0x50], ecx
mov ecx, esi
call fcn.005268ac
cmp dword [esi + 0x88], 0
jne 0x493f99
call fcn.00526c6c
mov dword [ebx + 0x34], edi
add dword [esi + 0x30], edi
jmp 0x437376
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x493fec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x493fd0
mov dword [ebx + 0x34], edi
add dword [esi + 0x30], edi
push 0xffffffffffffffff
push dword [ebx + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x493ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x54]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx + 0x54], 0
mov eax, esi
jmp 0x437398
and dword [ebx + 0x34], 0
push dword [ebx + 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx + 0x54], 0
jmp 0x437376
push 4
push 0xffffffffffffffff
push ebx
push 0x5265a4
push dword [ebx + 0x54]
lea eax, [ebx + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x4373b2
jmp 0x437376
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x437387
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x437387
mov eax, dword [esi + 4]
inc dword [eax + 4]
jmp 0x437387