Function at 0x408620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x462e60]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
push edi
mov dword [esp + 0x20], esi
je 0x408884
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
lea edx, [eax + ecx + 0x14]
push edx
call fcn.00415b57
mov edi, eax
mov eax, dword [esi + 0x68]
mov dword [edi], eax
mov ecx, dword [esi + 8]
mov dword [edi + 4], ecx
mov edx, dword [esi + 0x58]
lea eax, [esi + 0x50]
mov dword [edi + 8], edx
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ebx, eax
lea ecx, [edi + 0xc]
add esp, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ecx
test ebx, ebx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
je 0x4086a3
cmp ebx, eax
je 0x4086a8
call fcn.00431767
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x1c], eax
je 0x40872c
test ebx, ebx
jne 0x4086bb
call fcn.00431767
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [ebx + 4]
jne 0x4086c9
call fcn.00431767
mov esi, dword [esp + 0x1c]
add esi, 0x28
mov ecx, 0x46
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea ecx, [ecx]
mov dl, byte [esp + eax + 0x30]
not dl
mov byte [esp + eax + 0x30], dl
add eax, 1
cmp eax, 0x118
jb 0x4086e0
mov eax, dword [esp + 0xc]
mov edi, eax
mov ecx, 0x46
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
add eax, 0x118
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], eax
call fcn.00408290
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
jmp 0x408694
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ebx + edi + 0xc], eax
mov ecx, dword [esi + 0x64]
add ebx, 0xc
add ebx, 4
mov dword [ebx + edi], ecx
mov edx, dword [esi + 0x60]
mov ecx, dword [edx]
lea eax, [esi + 0x5c]
add ebx, 4
lea edx, [ebx + edi]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
lea esp, [esp]
test eax, eax
mov edx, dword [esi + 0x60]
lea ecx, [esi + 0x5c]
mov dword [esp + 0x2c], edx
je 0x408772
cmp eax, ecx
je 0x40877b
call fcn.00431767
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x14], ecx
je 0x40880e
test eax, eax
jne 0x408796
call fcn.00431767
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 4]
jne 0x4087a4
call fcn.00431767
mov esi, dword [esp + 0x14]
add esi, 0xc
mov ecx, 0x46
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x4087c0
mov cl, byte [esp + eax + 0x30]
not cl
mov byte [esp + eax + 0x30], cl
add eax, 1
cmp eax, 0x118
jb 0x4087c0
mov eax, dword [esp + 0xc]
mov edi, eax
mov ecx, 0x46
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
add eax, 0x118
lea ecx, [esp + 0x10]
add ebx, 0x118
mov dword [esp + 0xc], eax
call fcn.00408210
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
jmp 0x408760
mov edx, dword [esi + 0x14]
push 0
push 0
push edx
call fcn.004329db
add esp, 0xc
test eax, eax
je 0x40889b
mov ecx, dword [0x44d7f4]
mov edx, dword [0x44d7f8]
mov eax, dword [str.fseek]
push 0x52
mov dword [esp + 0x154], edx
mov dword [esp + 0x14c], eax
mov eax, dword [0x44d7fc]
mov dword [esp + 0x150], ecx
mov cx, word [0x44d800]
lea edx, [esp + 0x15e]
push 0
push edx
mov dword [esp + 0x160], eax
mov word [esp + 0x164], cx
call fcn.00432700
lea eax, [esp + 0x154]
push eax
call fcn.0040eb60
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.00431e6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x14]
push ecx
push 1
push ebx
push edi
call fcn.00431d16
add esp, 0x10
cmp eax, 1
je 0x408940
mov edx, dword [0x44d7dc]
mov eax, dword [0x44d7e0]
mov ecx, dword [0x44d7e4]
mov dword [esp + 0x148], edx
mov edx, dword [0x44d7e8]
mov dword [esp + 0x14c], eax
mov ax, word [0x44d7ec]
mov dword [esp + 0x150], ecx
mov cl, byte [0x44d7ee]
push 0x51
mov dword [esp + 0x158], edx
lea edx, [esp + 0x15f]
push 0
push edx
mov word [esp + 0x164], ax
mov byte [esp + 0x166], cl
call fcn.00432700
lea eax, [esp + 0x154]
push eax
call fcn.0040eb60
push edi
call fcn.00415b52
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.00431e6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x14]
push ecx
call fcn.004328f8
add esp, 4
test eax, eax
je 0x40898d
mov edx, dword [str.fflush]
mov eax, dword [0x44d7cc]
mov ecx, dword [0x44d7d0]
mov dword [esp + 0x148], edx
mov edx, dword [0x44d7d4]
mov dword [esp + 0x14c], eax
mov ax, word [0x44d7d8]
mov dword [esp + 0x150], ecx
mov cl, byte [0x44d7da]
jmp 0x4088ec
push edi
call fcn.00415b52
mov ecx, dword [esp + 0x1b8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00431e6f
mov esp, ebp
pop ebp
ret