Function at 0x4112e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657de6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
push edi
push ecx
lea edi, [ebp - 0x120]
mov ecx, 0x45
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x44], 0
je 0x411335
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x411341
mov al, 1
jmp 0x41172d
mov dword [ebp - 0x14], 8
mov esi, esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
call eax
cmp esi, esp
call fcn.00614e40
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], 0xffffffff
mov ecx, dword [ebp - 0x4c]
xor edx, edx
cmp ecx, dword [ebp - 0x48]
sete dl
movzx eax, dl
test eax, eax
je 0x411383
xor al, al
jmp 0x41172d
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.004104d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004108c0
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004108c0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x94]
call fcn.00412160
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x9c], edx
mov ecx, dword [ebp - 0xa0]
call fcn.00412160
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0xa8], ecx
mov esi, esp
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x98]
add eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x4c
push edx
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x18]
call eax
cmp esi, esp
call fcn.00614e40
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
push 3
lea ecx, [ebp - 0xb0]
call fcn.00654af0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00405fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.00654b30
mov byte [ebp - 4], 0
push 3
lea ecx, [ebp - 0xbc]
call fcn.00654af0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00405fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00654b30
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x114], 0
je 0x4114d4
cmp dword [ebp - 0x114], 1
je 0x4114db
cmp dword [ebp - 0x114], 3
je 0x4116a4
jmp 0x4116d5
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x49], 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004108c0
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xc4]
call fcn.00412160
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0xc8]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 0
push 3
lea ecx, [ebp - 0xd0]
call fcn.00654af0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x74]
call fcn.00405fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.00654b30
cmp dword [ebp - 0x44], 0
jbe 0x4115be
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004108c0
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x8c]
or edx, 1
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp - 0xd8]
call fcn.00412160
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 1
mov eax, dword [ebp - 0xdc]
push eax
call fcn.00615d00
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x4115be
mov dword [ebp - 0x120], 1
jmp 0x4115c8
mov dword [ebp - 0x120], 0
mov cl, byte [ebp - 0x120]
mov byte [ebp - 0x75], cl
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x8c]
and edx, 1
je 0x411615
and dword [ebp - 0x8c], 0xfffffffe
push 3
lea ecx, [ebp - 0xe4]
call fcn.00654af0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x84]
call fcn.00405fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.00654b30
movzx eax, byte [ebp - 0x75]
test eax, eax
je 0x411651
mov byte [ebp - 0x85], 0
mov dword [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00411ae0
mov al, byte [ebp - 0x85]
jmp 0x41172d
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x411690
mov byte [ebp - 0x86], 1
mov dword [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00411ae0
mov al, byte [ebp - 0x86]
jmp 0x41172d
cmp dword [ebp - 0x44], 0
jne 0x4116a2
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00410570
jmp 0x411706
mov byte [ebp - 0x87], 1
mov dword [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00411ae0
mov al, byte [ebp - 0x87]
jmp 0x41172d
mov byte [ebp - 0x88], 0
mov dword [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00411ae0
mov al, byte [ebp - 0x88]
jmp 0x41172d
jmp 0x411396
push edx
mov ecx, ebp
push eax
lea edx, [0x41175c]
call fcn.00614e70
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x120
cmp ebp, esp
call fcn.00614e40
mov esp, ebp
pop ebp
ret