Function at 0x43f660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c83e8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
call fcn.00404fb0
mov dword [ebp - 0x54], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00404f80
add esp, 8
movzx edx, al
test edx, edx
je 0x43f6bf
lea eax, [ebp + 8]
push eax
call fcn.0042ee30
add esp, 4
jmp 0x43f957
mov ecx, dword [ebp - 0x38]
call fcn.004321e0
test eax, eax
je 0x43f703
mov ecx, dword [ebp - 0x38]
call fcn.004321e0
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.004322a0
cmp esi, eax
jae 0x43f703
lea ecx, [ebp + 8]
push ecx
call fcn.0042ee20
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x38]
call fcn.00407d40
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x43f957
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x50], 0
jne 0x43f716
call fcn.00404fb0
jmp 0x43f957
mov ecx, dword [ebp - 0x38]
call fcn.00440930
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x40], 0
jne 0x43f76a
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x50]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0042ee20
add esp, 4
movzx ecx, al
push ecx
call fcn.0043cda0
add esp, 8
movzx edx, al
test edx, edx
je 0x43f755
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
jmp 0x43f75d
call fcn.00404fb0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x43f957
mov dword [ebp - 0x64], 8
lea ecx, [ebp + 8]
push ecx
call fcn.0042ee20
add esp, 4
mov byte [ebp - 0x12], al
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.004070b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040f6f0
mov ecx, eax
call fcn.0040ba10
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.00406b70
add esi, eax
push esi
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040f6f0
mov ecx, eax
call fcn.0040ba10
push eax
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x11]
push eax
lea ecx, [ebp - 0x12]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x48
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x40]
call fcn.00440a70
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x43f927
cmp dword [ebp - 0x40], 1
jle 0x43f80b
cmp dword [ebp - 0x40], 3
je 0x43f8e2
jmp 0x43f927
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040f6f0
mov ecx, eax
call fcn.0040ba10
mov edx, dword [ebp - 0x34]
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x43f875
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 1
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040f6f0
mov ecx, eax
call fcn.0040ba10
push eax
call fcn.0058aecb
add esp, 0x10
cmp dword [ebp - 0x3c], eax
je 0x43f875
call fcn.00404fb0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066d0
mov eax, dword [ebp - 0x5c]
jmp 0x43f957
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x45], 1
lea edx, [ebp - 0x12]
cmp dword [ebp - 0x30], edx
je 0x43f8a1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066d0
mov eax, dword [ebp - 0x60]
jmp 0x43f957
cmp dword [ebp - 0x3c], 0
jbe 0x43f8a9
jmp 0x43f8e0
lea ecx, [ebp - 0x2c]
call fcn.00406b70
cmp eax, 0x20
jae 0x43f8c4
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.00434610
jmp 0x43f8e0
call fcn.00404fb0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066d0
mov eax, dword [ebp - 0x4c]
jmp 0x43f957
jmp 0x43f943
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x50]
push edx
movzx eax, byte [ebp - 0x12]
push eax
call fcn.0043cda0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x43f905
mov edx, dword [ebp + 8]
mov dword [ebp - 0x44], edx
jmp 0x43f90d
call fcn.00404fb0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066d0
mov eax, dword [ebp - 0x50]
jmp 0x43f957
call fcn.00404fb0
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066d0
mov eax, dword [ebp - 0x58]
jmp 0x43f957
jmp 0x43f793
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058815d
mov esp, ebp
pop ebp
ret 4