Function at 0x4097f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423a0c
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x42b39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 0x3d], 0
mov ecx, dword [ebp - 0xd8]
call fcn.00409d00
movzx eax, al
test eax, eax
jne 0x40983e
xor al, al
jmp 0x409b5a
lea ecx, [ebp - 0x2c]
call fcn.0040a8f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0xd8]
add ecx, 0x104
call fcn.0040b370
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
jmp 0x409877
lea ecx, [ebp - 0x54]
call fcn.0040b4e0
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0xd8]
add ecx, 0x104
call fcn.0040b3a0
push eax
lea ecx, [ebp - 0x54]
call fcn.0040b490
movzx edx, al
test edx, edx
je 0x409977
push 0x425aa0
lea ecx, [ebp - 0x54]
call fcn.0040b4c0
add eax, 0x1c
push eax
push 0x425aa4
lea ecx, [ebp - 0x54]
call fcn.0040b4c0
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040fb30
add esp, 0xc
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xe0]
push edx
lea eax, [ebp - 0x9c]
push eax
call fcn.0040fbc0
add esp, 0xc
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xe8]
push edx
lea eax, [ebp - 0xb8]
push eax
call fcn.0040fb30
add esp, 0xc
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xf0]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040a9c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.0040a960
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call fcn.0040a960
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.0040a960
jmp 0x40986f
lea ecx, [ebp - 0x2c]
call fcn.0040ab50
push eax
call fcn.00413dbc
add esp, 4
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x2c]
call fcn.0040ab50
push eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004072b0
push eax
mov ecx, dword [ebp - 0xd8]
call fcn.00409c70
lea ecx, [ebp - 0x2c]
call fcn.0040ab50
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.00423008
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.00423002
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00413dbc
add esp, 4
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00413dbc
add esp, 4
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], ecx
push 0
push 0
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.00421974
add esp, 0x18
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x409a41
jmp 0x409acd
mov eax, dword [ebp - 0x48]
movsx ecx, byte [eax]
cmp ecx, 0x41
jne 0x409a8b
mov edx, dword [ebp - 0x48]
movsx eax, byte [edx + 1]
cmp eax, 0x50
jne 0x409a8b
mov ecx, dword [ebp - 0x48]
movsx edx, byte [ecx + 2]
cmp edx, 0x33
jne 0x409a8b
mov eax, dword [ebp - 0x48]
movsx ecx, byte [eax + 3]
cmp ecx, 0x32
jne 0x409a8b
mov edx, dword [ebp - 0x48]
mov byte [edx], 0x47
mov eax, dword [ebp - 0x48]
mov byte [eax + 1], 0x55
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 2], 0x4f
mov edx, dword [ebp - 0x48]
mov byte [edx + 3], 0x2e
push 0x425aa8
mov eax, dword [ebp + 8]
push eax
call fcn.00414b77
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x409aa7
jmp 0x409acd
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 1
mov eax, dword [ebp - 0x48]
push eax
call fcn.00414d91
add esp, 0x10
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00414460
add esp, 4
mov byte [ebp - 0x3d], 1
cmp dword [ebp - 0x48], 0
je 0x409af2
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00413c21
add esp, 4
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x3c], 0
je 0x409b17
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xcc]
push edx
call fcn.00413c21
add esp, 4
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x44], 0
je 0x409b3c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
push ecx
call fcn.00413c21
add esp, 4
mov dword [ebp - 0x44], 0
mov dl, byte [ebp - 0x3d]
mov byte [ebp - 0xd1], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040a960
mov al, byte [ebp - 0xd1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004139c9
mov esp, ebp
pop ebp
ret 4