Function at 0x409fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
mov dword [ebp - 0x14], ecx
call fcn.00409210
mov dword [ebp - 0x28], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00409240
add esp, 8
movzx edx, al
test edx, edx
je 0x40a022
lea eax, [ebp + 8]
push eax
call fcn.00409e30
add esp, 4
jmp 0x40a2ba
mov ecx, dword [ebp - 0x14]
call fcn.0040a480
test eax, eax
je 0x40a066
mov ecx, dword [ebp - 0x14]
call fcn.0040a480
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.00409220
cmp esi, eax
jae 0x40a066
lea ecx, [ebp + 8]
push ecx
call fcn.0040ab30
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x14]
call fcn.00408060
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40a2ba
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x50], 0
jne 0x40a079
call fcn.00409210
jmp 0x40a2ba
mov ecx, dword [ebp - 0x14]
call fcn.00408240
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x40], 0
jne 0x40a0cd
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x50]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0040ab30
add esp, 4
movzx ecx, al
push ecx
call fcn.00401e80
add esp, 8
movzx edx, al
test edx, edx
je 0x40a0b8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
jmp 0x40a0c0
call fcn.00409210
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x40a2ba
mov dword [ebp - 0x48], 8
lea ecx, [ebp + 8]
push ecx
call fcn.0040ab30
add esp, 4
mov byte [ebp - 0xe], al
push 0
push 8
lea ecx, [ebp - 0x70]
call fcn.00402fa0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408a80
mov ecx, eax
call fcn.00404360
mov esi, eax
lea ecx, [ebp - 0x70]
call fcn.0040aa60
add esi, eax
push esi
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00408a80
mov ecx, eax
call fcn.00404360
push eax
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0xe]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x48
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x40]
call fcn.00409f90
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x40a28a
cmp dword [ebp - 0x1c], 1
jle 0x40a16e
cmp dword [ebp - 0x1c], 3
je 0x40a245
jmp 0x40a28a
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00408a80
mov ecx, eax
call fcn.00404360
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x18], edx
je 0x40a1d8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408a80
mov ecx, eax
call fcn.00404360
push eax
call fcn.00411efb
add esp, 0x10
cmp dword [ebp - 0x18], eax
je 0x40a1d8
call fcn.00409210
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00403c40
mov eax, dword [ebp - 0x30]
jmp 0x40a2ba
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x45], 1
lea edx, [ebp - 0xe]
cmp dword [ebp - 0x34], edx
je 0x40a204
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00403c40
mov eax, dword [ebp - 0x38]
jmp 0x40a2ba
cmp dword [ebp - 0x18], 0
jbe 0x40a20c
jmp 0x40a243
lea ecx, [ebp - 0x70]
call fcn.0040aa60
cmp eax, 0x20
jae 0x40a227
push 0
push 8
lea ecx, [ebp - 0x70]
call fcn.00408700
jmp 0x40a243
call fcn.00409210
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00403c40
mov eax, dword [ebp - 0x3c]
jmp 0x40a2ba
jmp 0x40a2a6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x50]
push edx
movzx eax, byte [ebp - 0xe]
push eax
call fcn.00401e80
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40a268
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
jmp 0x40a270
call fcn.00409210
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00403c40
mov eax, dword [ebp - 0x40]
jmp 0x40a2ba
call fcn.00409210
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00403c40
mov eax, dword [ebp - 0x44]
jmp 0x40a2ba
jmp 0x40a0f6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4