Function at 0x40a660
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 0x40a934
cmp byte [ecx + 0x41], 0
je 0x40a934
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x40a6a5
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 0x40a6c8
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]
cmp edx, 0x10
jb 0x40a7e2
mov ebx, eax
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x40a708
mov ecx, eax
cmp edx, 0x10
jae 0x40a6f1
lea ecx, [ebp - 0x1c]
cmp ecx, ebx
ja 0x40a708
mov ecx, eax
cmp edx, 0x10
jae 0x40a6ff
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jbe 0x40a713
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x40a739
mov ecx, eax
cmp edx, 0x10
jae 0x40a725
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jb 0x40a739
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x40a7ed
mov esi, eax
test eax, eax
je 0x40a76f
mov ecx, eax
cmp edx, 0x10
jae 0x40a755
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x40a76f
mov ecx, eax
cmp edx, 0x10
jae 0x40a763
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
mov ebx, dword [ebp - 0x28]
cmp esi, ecx
jbe 0x40a77a
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x40a798
cmp edx, 0x10
jae 0x40a78a
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x40a798
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 0x40a7f5
sub eax, 1
je 0x40a7fc
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x40a91c
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 0x40a6e7
lea esi, [ebp - 0x1c]
jmp 0x40a74b
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x41], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x40a901
mov esi, eax
test eax, eax
je 0x40a832
mov ecx, eax
cmp edx, 0x10
jae 0x40a81b
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x40a832
mov ecx, eax
cmp edx, 0x10
jae 0x40a829
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jbe 0x40a83d
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x40a863
mov ecx, eax
cmp edx, 0x10
jae 0x40a84f
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jb 0x40a863
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
sub edi, esi
je 0x40a8e0
cmp edx, 0x10
jb 0x40a909
mov esi, eax
test eax, eax
je 0x40a89a
mov ecx, eax
cmp edx, 0x10
jae 0x40a883
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x40a89a
mov ecx, eax
cmp edx, 0x10
jae 0x40a891
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
cmp esi, ecx
jbe 0x40a8a5
call fcn.004233cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x40a8c3
cmp edx, 0x10
jae 0x40a8b5
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x40a8c3
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 0x40a911
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 0x41], 0
je 0x40a919
test edi, edi
jne 0x40a6d5
push edi
push 8
lea ecx, [ebp - 0x20]
call fcn.00401b50
jmp 0x40a6cf
lea esi, [ebp - 0x1c]
jmp 0x40a811
lea esi, [ebp - 0x1c]
jmp 0x40a879
lea ecx, [ebp - 0x20]
jmp 0x40a7ca
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