Function at 0x418cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x4f4500]
xor eax, esp
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x3c], 0
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
je 0x418f7c
cmp byte [ecx + 0x41], 0
je 0x418f7c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x418f5f
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x24], 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], 8
cmp ecx, 0x10
jae 0x418d1a
lea eax, [esp + 0x24]
mov byte [eax + 8], 0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
cmp edx, 0x10
jb 0x418e3b
mov ebx, ecx
mov dword [esp + 0xc], ebx
test ecx, ecx
je 0x418d5d
mov eax, ecx
cmp edx, 0x10
jae 0x418d44
lea eax, [esp + 0x24]
cmp eax, ebx
ja 0x418d5d
mov eax, ecx
cmp edx, 0x10
jae 0x418d53
lea eax, [esp + 0x24]
mov esi, dword [esp + 0x34]
add eax, esi
cmp ebx, eax
jbe 0x418d6a
call fcn.00443510
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
cmp eax, 0xfffffffc
je 0x418d95
mov eax, ecx
cmp edx, 0x10
jae 0x418d7e
lea eax, [esp + 0x24]
mov esi, dword [esp + 0x34]
add eax, esi
cmp ebx, eax
jb 0x418d95
call fcn.00443510
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
cmp edx, 0x10
jb 0x418e48
mov esi, ecx
test ecx, ecx
je 0x418dd0
mov eax, ecx
cmp edx, 0x10
jae 0x418db3
lea eax, [esp + 0x24]
cmp eax, esi
ja 0x418dd0
mov eax, ecx
cmp edx, 0x10
jae 0x418dc2
lea eax, [esp + 0x24]
mov ebx, dword [esp + 0x34]
add eax, ebx
mov ebx, dword [esp + 0xc]
cmp esi, eax
jbe 0x418ddd
call fcn.00443510
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
cmp eax, 0xfffffffc
je 0x418e00
mov eax, ecx
cmp edx, 0x10
jae 0x418df1
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x34]
add eax, ecx
cmp esi, eax
jb 0x418e00
call fcn.00443510
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
add ebx, edi
push ebx
mov ebx, dword [esp + 0x18]
push esi
lea eax, [ebx + 0x44]
push eax
call edx
sub eax, 0
je 0x418e51
sub eax, 1
je 0x418e55
sub eax, 2
lea ecx, [esp + 0x20]
jne 0x418f5a
jmp 0x418f77
lea ebx, [esp + 0x24]
mov dword [esp + 0xc], ebx
jmp 0x418d39
lea esi, [esp + 0x24]
jmp 0x418da8
mov byte [ebx + 0x41], 0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x418efd
mov esi, ecx
test ecx, ecx
je 0x418e90
mov eax, ecx
cmp edx, 0x10
jae 0x418e77
lea eax, [esp + 0x24]
cmp eax, esi
ja 0x418e90
mov eax, ecx
cmp edx, 0x10
jae 0x418e86
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x34]
add eax, edi
cmp esi, eax
jbe 0x418e9d
call fcn.00443510
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
cmp eax, 0xfffffffc
je 0x418ec8
mov eax, ecx
cmp edx, 0x10
jae 0x418eb1
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x34]
add eax, edi
cmp esi, eax
jb 0x418ec8
call fcn.00443510
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
sub edi, esi
je 0x418f37
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040a590
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffc
je 0x418f18
test eax, eax
jne 0x418ef0
call fcn.00443510
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x418f06
mov ecx, dword [eax + 4]
jmp 0x418f09
lea esi, [esp + 0x24]
jmp 0x418e6c
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x418f18
call fcn.00443510
mov eax, dword [ebx + 0x4c]
mov esi, dword [esi + 4]
push eax
push edi
push 1
push esi
call fcn.0044770c
add esp, 0x10
cmp edi, eax
jne 0x418f56
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
cmp byte [ebx + 0x41], 0
je 0x418f73
test edi, edi
jne 0x418d26
push edi
push 8
lea ecx, [esp + 0x28]
call fcn.00404c90
jmp 0x418d1e
lea ecx, [esp + 0x20]
call fcn.00401db0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004436fd
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.00401db0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004436fd
mov esp, ebp
pop ebp
ret