Function at 0x405e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x3c], 0
mov dword [ebp - 0x24], ecx
je 0x4060ef
cmp byte [ecx + 0x42], 0
je 0x4060ef
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffff
call edx
mov ecx, 0xffff
cmp cx, ax
jne 0x405e5d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x1c], 0
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 8
cmp ecx, 0x10
jae 0x405e80
lea eax, [ebp - 0x1c]
push ebx
push esi
mov byte [eax + 8], 0
push edi
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
lea ecx, [ecx]
cmp edx, 0x10
jb 0x405f9d
mov ebx, eax
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x405ec3
mov ecx, eax
cmp edx, 0x10
jae 0x405eac
lea ecx, [ebp - 0x1c]
cmp ecx, ebx
ja 0x405ec3
mov ecx, eax
cmp edx, 0x10
jae 0x405eba
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jbe 0x405ece
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x405ef4
mov ecx, eax
cmp edx, 0x10
jae 0x405ee0
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jb 0x405ef4
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x405fa8
mov esi, eax
test eax, eax
je 0x405f2a
mov ecx, eax
cmp edx, 0x10
jae 0x405f10
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x405f2a
mov ecx, eax
cmp edx, 0x10
jae 0x405f1e
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
mov ebx, dword [ebp - 0x28]
cmp esi, ecx
jbe 0x405f35
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x405f53
cmp edx, 0x10
jae 0x405f45
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x405f53
call fcn.004233cd
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x405fb0
sub eax, 1
je 0x405fb7
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x4060d7
call fcn.00401a50
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
jmp 0x405ea2
lea esi, [ebp - 0x1c]
jmp 0x405f06
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x42], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4060bc
mov esi, eax
test eax, eax
je 0x405fed
mov ecx, eax
cmp edx, 0x10
jae 0x405fd6
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x405fed
mov ecx, eax
cmp edx, 0x10
jae 0x405fe4
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jbe 0x405ff8
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x40601e
mov ecx, eax
cmp edx, 0x10
jae 0x40600a
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jb 0x40601e
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
sub edi, esi
je 0x40609b
cmp edx, 0x10
jb 0x4060c4
mov esi, eax
test eax, eax
je 0x406055
mov ecx, eax
cmp edx, 0x10
jae 0x40603e
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x406055
mov ecx, eax
cmp edx, 0x10
jae 0x40604c
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
cmp esi, ecx
jbe 0x406060
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x40607e
cmp edx, 0x10
jae 0x406070
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x40607e
call fcn.004233cd
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.00424914
add esp, 0x10
cmp edi, eax
jne 0x4060cc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 0x42], 0
je 0x4060d4
test edi, edi
jne 0x405e90
push edi
push 8
lea ecx, [ebp - 0x20]
call fcn.00401b50
jmp 0x405e87
lea esi, [ebp - 0x1c]
jmp 0x405fcc
lea esi, [ebp - 0x1c]
jmp 0x406034
lea ecx, [ebp - 0x20]
jmp 0x405f85
lea ecx, [ebp - 0x20]
call fcn.00401a50
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004235d5
mov esp, ebp
pop ebp
ret