Function at 0x409410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
mov eax, dword [0x4667a0]
xor eax, esp
mov dword [esp + 0x284], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
push eax
mov ebx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [0x44e238]
cmp eax, 0xffffffff
je 0x409476
mov eax, dword [esp + 0x14]
push eax
call dword [0x44e234]
test eax, eax
jne 0x409476
pop edi
pop ebx
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.00434a99
mov esp, ebp
pop ebp
ret
push edi
push edi
push edi
push edi
push 0x456f04
mov dword [esp + 0x30], edi
call dword [0x44e660]
mov dword [esp + 0x30], eax
cmp eax, edi
je 0x409665
push edi
push 0x4000000
push edi
push edi
push ebx
push eax
call dword [0x44e668]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, edi
je 0x409623
xor eax, eax
push edi
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
lea eax, [esp + 0x3c]
push eax
push 0x13
xor ecx, ecx
push ebx
mov word [esp + 0x48], cx
mov dword [esp + 0x3c], 0xa
call dword [0x44e66c]
mov ecx, 0x456f1c
lea eax, [esp + 0x34]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40951c
cmp dx, di
je 0x409518
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40951c
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4094f6
xor eax, eax
jmp 0x409521
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x4095da
mov ecx, dword [esp + 0x14]
push 0x456f5c
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004361ee
add esp, 0xc
cmp dword [esp + 0x10], edi
je 0x40961a
cmp dword [esp + 8], edi
jbe 0x4095b9
mov ebx, dword [0x44e65c]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push 0x1ff
lea ecx, [esp + 0x90]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push eax
push ecx
lea edx, [esp + 0x90]
push 1
push edx
call fcn.004365fe
add esp, 0x10
cmp esi, edi
je 0x4095af
mov eax, dword [esi]
cmp eax, edi
je 0x4095af
mov ecx, dword [esp + 8]
mov edx, dword [esi + 8]
add dword [esp + 0x24], ecx
push edx
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], edi
call eax
add esp, 8
cmp dword [esp + 8], edi
ja 0x409556
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push edx
call fcn.00435868
add esp, 4
push ebx
mov dword [esp + 0x20], 1
call dword [0x44e664]
jmp 0x40965a
cmp esi, edi
je 0x40961a
cmp dword [esi + 4], edi
je 0x40961a
lea eax, [esp + 0x34]
push eax
push 0x456f24
mov ecx, 0x20
lea ebx, [esp + 0x50]
call fcn.00403da0
mov edx, dword [esi + 8]
mov ecx, ebx
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 4]
push eax
mov dword [esp + 0x28], edi
call ecx
mov ebx, dword [esp + 0x1c]
add esp, 0x10
push ebx
call dword [0x44e664]
jmp 0x40965a
cmp esi, edi
je 0x40965a
cmp dword [esi + 4], edi
je 0x40965a
push 0x456f4c
mov ecx, 0x20
lea ebx, [esp + 0x4c]
call fcn.00403da0
mov eax, dword [esi + 8]
mov edx, ebx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 4]
push ecx
mov dword [esp + 0x38], edi
call edx
add esp, 0xc
mov eax, dword [esp + 0x30]
push eax
call dword [0x44e664]
mov ecx, dword [esp + 0x28c]
mov eax, dword [esp + 0x1c]
pop edi
pop ebx
xor ecx, esp
call fcn.00434a99
mov esp, ebp
pop ebp
ret