Function at 0x40c3d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x498e88
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4c17d0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4c17d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x14], ecx
je 0x40c6c0
cmp byte [ecx + 0x41], 0
je 0x40c6c0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40c6b3
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x28], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 8
cmp ecx, 0x10
jae 0x40c45a
lea eax, [esp + 0x28]
mov byte [eax + 8], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov edi, edi
cmp edx, 0x10
jb 0x40c57d
mov esi, eax
mov dword [esp + 0x10], esi
test eax, eax
je 0x40c4a7
mov ecx, eax
cmp edx, 0x10
jae 0x40c48e
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x40c4a7
mov ecx, eax
cmp edx, 0x10
jae 0x40c49d
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jbe 0x40c4b8
call fcn.00478cdf
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x40c4e3
mov ecx, eax
cmp edx, 0x10
jae 0x40c4cc
lea ecx, [esp + 0x28]
add ecx, edi
cmp esi, ecx
jb 0x40c4e3
call fcn.00478cdf
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
mov ebx, edi
cmp edx, 0x10
jb 0x40c58c
mov esi, eax
test eax, eax
je 0x40c514
mov ecx, eax
cmp edx, 0x10
jae 0x40c4ff
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x40c514
mov ecx, eax
cmp edx, 0x10
jae 0x40c50e
lea ecx, [esp + 0x28]
add ecx, edi
cmp esi, ecx
jbe 0x40c525
call fcn.00478cdf
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x40c542
cmp edx, 0x10
jae 0x40c537
lea eax, [esp + 0x28]
add eax, edi
cmp esi, eax
jb 0x40c542
call fcn.00478cdf
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x44]
push eax
call edx
sub eax, 0
je 0x40c595
sub eax, 1
je 0x40c599
sub eax, 2
lea ecx, [esp + 0x24]
jne 0x40c6ae
jmp 0x40c6bb
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], ecx
mov esi, ecx
jmp 0x40c483
lea esi, [esp + 0x28]
jmp 0x40c4f4
mov byte [edi + 0x41], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
cmp edx, 0x10
jb 0x40c64d
mov esi, eax
test eax, eax
je 0x40c5d4
mov ecx, eax
cmp edx, 0x10
jae 0x40c5bb
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x40c5d4
mov ecx, eax
cmp edx, 0x10
jae 0x40c5ca
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jbe 0x40c5e1
call fcn.00478cdf
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x40c60c
mov ecx, eax
cmp edx, 0x10
jae 0x40c5f5
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jb 0x40c60c
call fcn.00478cdf
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
sub edi, esi
je 0x40c687
cmp edx, 0x10
jae 0x40c61d
lea eax, [esp + 0x28]
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0040bb00
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
cmp esi, 0xfffffffc
je 0x40c667
test esi, esi
jne 0x40c642
call fcn.00478cdf
cmp dword [esi + 0x18], 0x10
jb 0x40c656
mov eax, dword [esi + 4]
jmp 0x40c659
lea esi, [esp + 0x28]
jmp 0x40c5b0
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp ebx, ecx
jb 0x40c667
call fcn.00478cdf
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push ebx
call fcn.0047a9e9
add esp, 0x10
cmp edi, eax
jne 0x40c6aa
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x41], 0
je 0x40c6b7
test edi, edi
jne 0x40c470
push edi
push 8
lea ecx, [esp + 0x2c]
call fcn.00411580
jmp 0x40c466
lea ecx, [esp + 0x24]
call fcn.00415dc0
xor al, al
jmp 0x40c6c2
lea ecx, [esp + 0x24]
call fcn.00415dc0
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret