Function at 0x43d510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push esi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x40], 0
je 0x43d543
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x43d54f
mov al, 1
jmp 0x43d72a
mov dword [ebp - 0x40], 8
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x30]
jne 0x43d580
mov dword [ebp - 0x24], 1
jmp 0x43d587
mov dword [ebp - 0x24], 0
movzx edx, byte [ebp - 0x24]
test edx, edx
je 0x43d596
xor al, al
jmp 0x43d72a
lea ecx, [ebp - 0x11]
call fcn.004076c0
push eax
lea ecx, [ebp - 0x68]
call fcn.004076d0
push 0
push 0
lea ecx, [ebp - 0x68]
call fcn.00407620
push 0
push 8
lea ecx, [ebp - 0x68]
call fcn.004519c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00407600
mov esi, eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x68]
call fcn.00422b30
mov ecx, eax
call fcn.0040cb80
add eax, esi
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00422b30
mov ecx, eax
call fcn.0040cb80
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x48
push ecx
mov ecx, dword [ebp - 0x28]
mov edx, dword [edx + 0x20]
call edx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x43d645
cmp dword [ebp - 0x20], 1
je 0x43d64c
cmp dword [ebp - 0x20], 3
je 0x43d6e6
jmp 0x43d6fe
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00422b30
mov ecx, eax
call fcn.0040cb80
mov edx, dword [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1c], edx
je 0x43d6af
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.00422b30
mov ecx, eax
call fcn.0040cb80
push eax
call fcn.0050ceb0
add esp, 0x10
cmp dword [ebp - 0x1c], eax
je 0x43d6af
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00407340
mov al, byte [ebp - 0xd]
jmp 0x43d72a
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x43d6d2
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00407340
mov al, byte [ebp - 0xe]
jmp 0x43d72a
cmp dword [ebp - 0x1c], 0
jne 0x43d6e4
push 0
push 8
lea ecx, [ebp - 0x68]
call fcn.0043ca10
jmp 0x43d716
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00407340
mov al, byte [ebp - 0xf]
jmp 0x43d72a
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00407340
mov al, byte [ebp - 0x10]
jmp 0x43d72a
jmp 0x43d5c6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret