Function at 0x40c9a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov bl, byte [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
test bl, bl
je 0x40c9cc
mov esi, dword [ebp + 8]
push 0x46a90c
push esi
call fcn.00437ee0
jmp 0x40c9dd
mov eax, dword [ebp + 8]
push 0x46a844
push eax
call fcn.00437ee0
mov esi, dword [ebp + 8]
add esp, 8
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x40ca1a
call fcn.0043a300
mov ecx, dword [eax]
push ecx
call fcn.00439ddf
add esp, 4
push eax
push esi
push str.unable_to_open__s_for_writing:__s_n
call fcn.00437c6f
add eax, 0x40
push eax
call fcn.0043815e
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push esi
call fcn.00415d10
add esp, 8
test bl, bl
jne 0x40cab4
lea edx, [edi + 4]
push edx
lea eax, [ebp - 0x20c]
push str.__s__r_n
push eax
call fcn.00436903
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ca50
mov ebx, dword [ebp + 0xc]
sub eax, edx
push ebx
mov esi, eax
push esi
lea ecx, [ebp - 0x20c]
push 1
push ecx
call fcn.00439fa0
add esp, 0x10
push ebx
cmp eax, esi
je 0x40caa9
call fcn.004385d6
mov edx, dword [ebp + 8]
push edx
call fcn.0043af45
mov eax, dword [edi + 0x270]
push eax
call fcn.0042a2d0
lea ecx, [ebp - 4]
push 0
push ecx
call fcn.0042c850
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0043a262
mov esi, dword [ebp + 8]
add esp, 4
mov edx, dword [edi + 0x280]
push edx
call fcn.0042a2b0
mov ecx, dword [edi + 0x234]
add esp, 4
test ecx, ecx
jne 0x40caf6
mov eax, dword [edi + 0x280]
push eax
call fcn.0042a2d0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004385d6
push esi
call fcn.0043af45
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x46eaf4
push 0x47062c
lea edx, [edi + 4]
push edx
call fcn.00418b90
push eax
lea eax, [ebp - 0x20c]
push str..ver_s_r_n
push eax
call fcn.00436903
mov ecx, dword [edi + 0x280]
push ecx
call fcn.0042a2d0
lea eax, [ebp - 0x20c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cb33
mov ebx, dword [ebp + 0xc]
sub eax, edx
push ebx
mov esi, eax
push esi
lea edx, [ebp - 0x20c]
push 1
push edx
call fcn.00439fa0
add esp, 0x10
push ebx
cmp eax, esi
je 0x40cb8c
call fcn.004385d6
mov eax, dword [ebp + 8]
push eax
call fcn.0043af45
mov ecx, dword [edi + 0x270]
push ecx
call fcn.0042a2d0
lea edx, [ebp - 4]
push 0
push edx
call fcn.0042c850
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0043a262
mov ecx, dword [edi + 0x230]
add esp, 4
push 0
mov dword [ebp + 0xc], 0
call fcn.004060b0
mov esi, eax
test esi, esi
je 0x40cc88
mov eax, dword [edi + 0x260]
inc dword [ebp + 0xc]
test eax, eax
je 0x40cbdb
push eax
mov eax, dword [edi + 0x268]
push esi
push eax
call fcn.00415960
and eax, edx
add esp, 0xc
cmp eax, 0xffffffff
je 0x40cc6f
mov ecx, dword [edi + 0x230]
push 0
push 0x46eaf4
push 0x47062c
push esi
call fcn.00409780
push eax
push esi
lea ecx, [ebp - 0x20c]
push str._s_s_r_n
push ecx
call fcn.00436903
lea edx, [ebp - 0x20c]
push 0x46a8c8
push edx
call fcn.00436af0
add esp, 0x18
test eax, eax
je 0x40cc35
mov edi, edi
push 0x46a8c8
push eax
mov byte [eax], 0x5c
call fcn.00436af0
add esp, 8
test eax, eax
jne 0x40cc20
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cc40
sub eax, edx
mov esi, eax
push ebx
push esi
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.00439fa0
add esp, 0x10
push ebx
cmp eax, esi
jne 0x40ca76
call fcn.0043a262
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [edi + 0x230]
call fcn.004060b0
mov esi, eax
test esi, esi
jne 0x40cbb2
push ebx
call fcn.004385d6
mov edx, dword [ebp + 8]
push 0
push edx
call fcn.00415d10
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8