Function at 0x413ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
mov dword [ebp - 8], ecx
call fcn.004128e0
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00412910
add esp, 8
movzx edx, al
test edx, edx
je 0x413aed
lea eax, [ebp + 8]
push eax
call fcn.004139b0
add esp, 4
jmp 0x413d4e
mov ecx, dword [ebp - 8]
call fcn.00413f20
test eax, eax
je 0x413b31
mov ecx, dword [ebp - 8]
call fcn.00413f20
mov esi, eax
mov ecx, dword [ebp - 8]
call fcn.004128f0
cmp esi, eax
jae 0x413b31
lea ecx, [ebp + 8]
push ecx
call fcn.00414b20
add esp, 4
mov bl, al
mov ecx, dword [ebp - 8]
call fcn.004114b0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x413d4e
mov edx, dword [ebp - 8]
cmp dword [edx + 0x50], 0
jne 0x413b44
call fcn.004128e0
jmp 0x413d4e
mov ecx, dword [ebp - 8]
call fcn.00411500
mov eax, dword [ebp - 8]
cmp dword [eax + 0x40], 0
jne 0x413b95
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00414b20
add esp, 4
movzx ecx, al
push ecx
call fcn.0040c7c0
movzx edx, al
test edx, edx
je 0x413b80
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jmp 0x413b88
call fcn.004128e0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x413d4e
mov dword [ebp - 0x3c], 8
lea ecx, [ebp + 8]
push ecx
call fcn.00414b20
add esp, 4
mov byte [ebp - 2], al
push 0
push 8
lea ecx, [ebp - 0x64]
call fcn.0040e220
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x64]
call fcn.00411fd0
mov ecx, eax
call fcn.0040f460
mov esi, eax
lea ecx, [ebp - 0x64]
call fcn.00414a00
add esi, eax
push esi
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00411fd0
mov ecx, eax
call fcn.0040f460
push eax
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 2]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x48
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x40]
call fcn.00413a70
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x413d2c
cmp dword [ebp - 0x10], 1
jle 0x413c2f
cmp dword [ebp - 0x10], 3
je 0x413cf1
jmp 0x413d2c
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00411fd0
mov ecx, eax
call fcn.0040f460
mov edx, dword [ebp - 0x20]
sub edx, eax
mov dword [ebp - 0xc], edx
je 0x413c92
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00411fd0
mov ecx, eax
call fcn.0040f460
push eax
call fcn.00416f99
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x413c92
call fcn.004128e0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x64]
call fcn.0040ed30
mov eax, dword [ebp - 0x24]
jmp 0x413d4e
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x45], 1
lea edx, [ebp - 2]
cmp dword [ebp - 0x28], edx
je 0x413cb7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x64]
call fcn.0040ed30
mov eax, dword [ebp - 0x2c]
jmp 0x413d4e
cmp dword [ebp - 0xc], 0
jbe 0x413cbf
jmp 0x413cef
lea ecx, [ebp - 0x64]
call fcn.00414a00
cmp eax, 0x20
jae 0x413cda
push 0
push 8
lea ecx, [ebp - 0x64]
call fcn.00411b60
jmp 0x413cef
call fcn.004128e0
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x64]
call fcn.0040ed30
mov eax, dword [ebp - 0x30]
jmp 0x413d4e
jmp 0x413d41
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
push edx
movzx eax, byte [ebp - 2]
push eax
call fcn.0040c7c0
movzx ecx, al
test ecx, ecx
je 0x413d11
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
jmp 0x413d19
call fcn.004128e0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x64]
call fcn.0040ed30
mov eax, dword [ebp - 0x34]
jmp 0x413d4e
call fcn.004128e0
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x64]
call fcn.0040ed30
mov eax, dword [ebp - 0x38]
jmp 0x413d4e
jmp 0x413bb7
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4