Function at 0x40eaf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657bae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push esi
push edi
push ecx
lea edi, [ebp - 0x170]
mov ecx, 0x59
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x58], 0xffffffff
mov eax, dword [ebp - 0x58]
xor ecx, ecx
cmp eax, dword [ebp + 8]
sete cl
movzx edx, cl
test edx, edx
je 0x40eb7b
cmp dword [ebp + 8], 0xffffffff
je 0x40eb5b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14c], eax
jmp 0x40eb6b
or ecx, 0xffffffff
neg ecx
sbb ecx, ecx
add ecx, 1
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp - 0x14c]
jmp 0x40f108
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 0
je 0x40ec0d
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x24]
mov ecx, dword [edx]
add ecx, dword [eax]
cmp dword [ebp - 0xb0], ecx
jae 0x40ec0d
mov dl, byte [ebp + 8]
mov byte [ebp - 0xb1], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx]
sub edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
mov dword [ecx], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x150]
mov dl, byte [ebp - 0xb1]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
jmp 0x40f108
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x54], 0
jne 0x40ec1e
or eax, 0xffffffff
jmp 0x40f108
mov ecx, dword [ebp - 0x10]
call fcn.004117c0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x44], 0
jne 0x40ec8f
mov dl, byte [ebp + 8]
mov byte [ebp - 0xb9], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xc0]
push edx
movsx eax, byte [ebp - 0xb9]
push eax
call fcn.00619c30
add esp, 8
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
movzx edx, cl
test edx, edx
je 0x40ec75
mov eax, dword [ebp + 8]
mov dword [ebp - 0x154], eax
jmp 0x40ec7f
mov dword [ebp - 0x154], 0xffffffff
mov eax, dword [ebp - 0x154]
jmp 0x40f108
mov dword [ebp - 0x14], 8
mov cl, byte [ebp + 8]
mov byte [ebp - 0x19], cl
push 0
push 8
lea ecx, [ebp - 0x4c]
call fcn.004104d0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004108c0
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004108c0
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0xd4], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xc8]
call fcn.00412160
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd4]
call fcn.00412160
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x44]
mov dword [ebp - 0xdc], edx
mov esi, esp
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xcc]
add ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0xd8]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x19]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x4c
push eax
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x14]
call eax
cmp esi, esp
call fcn.00614e40
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 1
push 3
lea ecx, [ebp - 0xe4]
call fcn.00654af0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.00405fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.00654b30
mov byte [ebp - 4], 0
push 3
lea ecx, [ebp - 0xf0]
call fcn.00654af0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
call fcn.00405fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf0]
call fcn.00654b30
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x160], ecx
cmp dword [ebp - 0x160], 0
jl 0x40f0ad
cmp dword [ebp - 0x160], 1
jle 0x40edfd
cmp dword [ebp - 0x160], 3
je 0x40f027
jmp 0x40f0ad
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004108c0
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xf8]
call fcn.00412160
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 0
push 3
lea ecx, [ebp - 0x104]
call fcn.00654af0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x80]
call fcn.00405fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x104]
call fcn.00654b30
cmp dword [ebp - 0x54], 0
jbe 0x40eee0
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004108c0
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xa8]
or ecx, 1
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0x10c]
call fcn.00412160
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
push 1
mov edx, dword [ebp - 0x110]
push edx
call fcn.00615d00
add esp, 0x10
cmp dword [ebp - 0x54], eax
je 0x40eee0
mov dword [ebp - 0x16c], 1
jmp 0x40eeea
mov dword [ebp - 0x16c], 0
mov al, byte [ebp - 0x16c]
mov byte [ebp - 0x81], al
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xa8]
and ecx, 1
je 0x40ef3a
and dword [ebp - 0xa8], 0xfffffffe
push 3
lea ecx, [ebp - 0x118]
call fcn.00654af0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x90]
call fcn.00405fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.00654b30
movzx edx, byte [ebp - 0x81]
test edx, edx
je 0x40ef7c
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00411ae0
mov eax, dword [ebp - 0x94]
jmp 0x40f108
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x49], 1
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x19]
cmp ecx, edx
je 0x40efc3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00411ae0
mov eax, dword [ebp - 0x98]
jmp 0x40f108
cmp dword [ebp - 0x54], 0
jbe 0x40efcb
jmp 0x40f022
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x120], ecx
cmp dword [ebp - 0x120], 0x20
jae 0x40efeb
push 0
push 8
lea ecx, [ebp - 0x4c]
call fcn.00410570
jmp 0x40f022
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00411ae0
mov eax, dword [ebp - 0x9c]
jmp 0x40f108
jmp 0x40f0e1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x13c], eax
mov cl, byte [ebp - 0x19]
mov byte [ebp - 0x138], cl
mov edx, dword [ebp - 0x13c]
push edx
movsx eax, byte [ebp - 0x138]
push eax
call fcn.00619c30
add esp, 8
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
movzx edx, cl
test edx, edx
je 0x40f06d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x170], eax
jmp 0x40f077
mov dword [ebp - 0x170], 0xffffffff
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00411ae0
mov eax, dword [ebp - 0xa0]
jmp 0x40f108
mov dword [ebp - 0xa4], 0xffffffff
mov dword [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00411ae0
mov eax, dword [ebp - 0xa4]
jmp 0x40f108
jmp 0x40ecaf
push edx
mov ecx, ebp
push eax
lea edx, [0x40f138]
call fcn.00614e70
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x170
cmp ebp, esp
call fcn.00614e40
mov esp, ebp
pop ebp
ret 4