Function at 0x414610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x499078]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
call fcn.00413100
mov word [ebp - 0x42], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x42]
push ecx
call fcn.004165f0
add esp, 8
movzx edx, al
test edx, edx
je 0x414672
lea eax, [ebp + 8]
push eax
call fcn.00413110
add esp, 4
jmp 0x414923
mov ecx, dword [ebp - 0x74]
call fcn.00415630
test eax, eax
je 0x4146bc
mov ecx, dword [ebp - 0x74]
call fcn.00415630
mov esi, eax
mov ecx, dword [ebp - 0x74]
call fcn.004156f0
cmp esi, eax
jae 0x4146bc
lea ecx, [ebp + 8]
push ecx
call fcn.004130f0
add esp, 4
mov si, ax
mov ecx, dword [ebp - 0x74]
call fcn.00415850
mov word [eax], si
mov ax, word [ebp + 8]
jmp 0x414923
mov edx, dword [ebp - 0x74]
cmp dword [edx + 0x4c], 0
jne 0x4146d4
call fcn.00413100
jmp 0x414923
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x3c], 0
jne 0x414724
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.004130f0
add esp, 4
movzx ecx, ax
push ecx
call fcn.00413ec0
add esp, 8
movzx edx, al
test edx, edx
je 0x41470d
mov ax, word [ebp + 8]
mov word [ebp - 0x76], ax
jmp 0x414716
call fcn.00413100
mov word [ebp - 0x76], ax
mov ax, word [ebp - 0x76]
jmp 0x414923
mov dword [ebp - 0x10], 8
lea ecx, [ebp + 8]
push ecx
call fcn.004130f0
add esp, 4
mov word [ebp - 0x18], ax
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0040d280
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d340
mov ecx, eax
call fcn.0040e890
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00401970
add esi, eax
push esi
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040d340
mov ecx, eax
call fcn.0040e890
push eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x16]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x74]
add edx, 0x44
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x3c]
call fcn.00413150
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jl 0x4148f1
cmp dword [ebp - 0x7c], 1
jle 0x4147c6
cmp dword [ebp - 0x7c], 3
je 0x4148a6
jmp 0x4148f1
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040d340
mov ecx, eax
call fcn.0040e890
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x40], edx
je 0x414832
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d340
mov ecx, eax
call fcn.0040e890
push eax
call fcn.00417fe6
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x414832
call fcn.00413100
mov word [ebp - 0x66], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401770
mov ax, word [ebp - 0x66]
jmp 0x414923
mov ecx, dword [ebp - 0x74]
mov byte [ecx + 0x42], 1
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
cmp edx, eax
je 0x414863
mov cx, word [ebp + 8]
mov word [ebp - 0x68], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401770
mov ax, word [ebp - 0x68]
jmp 0x414923
cmp dword [ebp - 0x40], 0
jbe 0x41486b
jmp 0x4148a4
lea ecx, [ebp - 0x3c]
call fcn.00401970
cmp eax, 0x20
jae 0x414886
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0040d2c0
jmp 0x4148a4
call fcn.00413100
mov word [ebp - 0x6a], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401770
mov ax, word [ebp - 0x6a]
jmp 0x414923
jmp 0x41490f
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x4c]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
call fcn.00413ec0
add esp, 8
movzx edx, al
test edx, edx
je 0x4148cb
mov ax, word [ebp + 8]
mov word [ebp - 0x7e], ax
jmp 0x4148d4
call fcn.00413100
mov word [ebp - 0x7e], ax
mov cx, word [ebp - 0x7e]
mov word [ebp - 0x6c], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401770
mov ax, word [ebp - 0x6c]
jmp 0x414923
call fcn.00413100
mov word [ebp - 0x6e], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401770
mov ax, word [ebp - 0x6e]
jmp 0x414923
jmp 0x41474e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0041694e
mov esp, ebp
pop ebp
ret 4