Function at 0x407c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469c38
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x481288]
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.00405980
mov word [ebp - 0x42], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x42]
push ecx
call fcn.00405960
add esp, 8
movzx edx, al
test edx, edx
je 0x407c72
lea eax, [ebp + 8]
push eax
call fcn.00405990
add esp, 4
jmp 0x407f20
mov ecx, dword [ebp - 0x74]
call fcn.00408e00
test eax, eax
je 0x407cbc
mov ecx, dword [ebp - 0x74]
call fcn.00408e00
mov esi, eax
mov ecx, dword [ebp - 0x74]
call fcn.00408ec0
cmp esi, eax
jae 0x407cbc
lea ecx, [ebp + 8]
push ecx
call fcn.00405950
add esp, 4
mov si, ax
mov ecx, dword [ebp - 0x74]
call fcn.00409020
mov word [eax], si
mov ax, word [ebp + 8]
jmp 0x407f20
mov edx, dword [ebp - 0x74]
cmp dword [edx + 0x4c], 0
jne 0x407cd4
call fcn.00405980
jmp 0x407f20
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x3c], 0
jne 0x407d21
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00405950
add esp, 4
push eax
call fcn.004072d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x407d0a
mov dx, word [ebp + 8]
mov word [ebp - 0x76], dx
jmp 0x407d13
call fcn.00405980
mov word [ebp - 0x76], ax
mov ax, word [ebp - 0x76]
jmp 0x407f20
mov dword [ebp - 0x10], 8
lea eax, [ebp + 8]
push eax
call fcn.00405950
add esp, 4
mov word [ebp - 0x18], ax
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.004088d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00408990
mov ecx, eax
call fcn.004095b0
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00402490
add esi, eax
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00408990
mov ecx, eax
call fcn.004095b0
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x16]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x74]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x74]
mov ecx, dword [edx + 0x3c]
call fcn.00406100
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jl 0x407eee
cmp dword [ebp - 0x7c], 1
jle 0x407dc3
cmp dword [ebp - 0x7c], 3
je 0x407ea3
jmp 0x407eee
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00408990
mov ecx, eax
call fcn.004095b0
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x40], ecx
je 0x407e2f
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 1
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00408990
mov ecx, eax
call fcn.004095b0
push eax
call fcn.004150b3
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x407e2f
call fcn.00405980
mov word [ebp - 0x66], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402450
mov ax, word [ebp - 0x66]
jmp 0x407f20
mov eax, dword [ebp - 0x74]
mov byte [eax + 0x42], 1
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
cmp ecx, edx
je 0x407e60
mov ax, word [ebp + 8]
mov word [ebp - 0x68], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402450
mov ax, word [ebp - 0x68]
jmp 0x407f20
cmp dword [ebp - 0x40], 0
jbe 0x407e68
jmp 0x407ea1
lea ecx, [ebp - 0x3c]
call fcn.00402490
cmp eax, 0x20
jae 0x407e83
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00408910
jmp 0x407ea1
call fcn.00405980
mov word [ebp - 0x6a], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402450
mov ax, word [ebp - 0x6a]
jmp 0x407f20
jmp 0x407f0c
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x4c]
push edx
mov ax, word [ebp - 0x18]
push eax
call fcn.004072d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x407ec8
mov dx, word [ebp + 8]
mov word [ebp - 0x7e], dx
jmp 0x407ed1
call fcn.00405980
mov word [ebp - 0x7e], ax
mov ax, word [ebp - 0x7e]
mov word [ebp - 0x6c], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402450
mov ax, word [ebp - 0x6c]
jmp 0x407f20
call fcn.00405980
mov word [ebp - 0x6e], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402450
mov ax, word [ebp - 0x6e]
jmp 0x407f20
jmp 0x407d4b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004151d0
mov esp, ebp
pop ebp
ret 4