Function at 0x407930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
push 0x42c4e4
push dword [ebp + 8]
call fcn.0041233a
add esp, 8
test eax, eax
je 0x407be3
mov esi, eax
push 2
push 0
push eax
call fcn.00412ce1
add esp, 0xc
mov ebx, 6
test eax, eax
jne 0x407c04
push esi
call fcn.00412fb8
add esp, 4
test eax, eax
jle 0x407c04
mov edi, eax
inc eax
push eax
call fcn.0040a20b
add esp, 4
mov dword [ebp - 0x1c], eax
xor eax, eax
push eax
push eax
push esi
call fcn.00412ce1
add esp, 0xc
test eax, eax
jne 0x407bf8
push esi
push edi
push 1
push dword [ebp - 0x1c]
call fcn.00412ac3
add esp, 0x10
cmp eax, edi
mov eax, dword [ebp - 0x1c]
jne 0x407bfb
mov byte [eax + edi], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov edi, eax
mov dword [ebp - 0x14], esi
mov eax, edi
movzx ecx, byte [edi]
cmp ecx, 0xa
je 0x407a09
cmp ecx, 0xd
je 0x407a09
test ecx, ecx
je 0x407bea
lea esi, [eax + 1]
mov edi, esi
mov edx, ecx
cmp dl, 0xa
je 0x407a0e
movzx edx, dl
cmp edx, 0xd
je 0x407a0e
mov dl, byte [edi]
inc edi
test dl, dl
jne 0x4079f1
xor edi, edi
jmp 0x407a14
inc eax
mov edi, eax
jmp 0x4079d3
mov byte [edi - 1], 0
mov cl, byte [eax]
cmp cl, 0x23
je 0x407b7f
movzx edx, cl
cmp edx, 0x3b
je 0x407b7f
lea edx, [eax + 2]
add eax, 3
movzx ebx, cl
cmp ebx, 0x1f
jg 0x407a3e
cmp ebx, 9
je 0x407a43
jmp 0x407a4a
cmp ebx, 0x20
jne 0x407a54
mov cl, byte [esi]
inc esi
inc edx
inc eax
jmp 0x407a2f
test ebx, ebx
je 0x407b7f
jmp 0x407a68
cmp ebx, 0x5b
jne 0x407a68
mov ecx, esi
movzx ebx, byte [ecx]
cmp ebx, 0x5d
jne 0x407a84
inc ecx
inc edx
inc eax
jmp 0x407a5b
cmp byte [ebp - 0x10], 0
je 0x407b7f
lea eax, [esi - 1]
mov dword [ebp - 0x20], eax
cmp cl, 0x3d
jne 0x407aa5
mov cl, byte [eax + 1]
inc eax
inc esi
jmp 0x407a78
test ebx, ebx
jne 0x407a94
mov dword [ebp - 0x10], 0
jmp 0x407b41
cmp bl, 0x5d
je 0x407ac0
mov bl, byte [ecx + 1]
inc ecx
inc edx
inc eax
test bl, bl
jne 0x407a94
jmp 0x407ad8
movzx eax, cl
test eax, eax
je 0x407b7f
cmp cl, 0x3d
je 0x407ae2
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x407ab0
xor esi, esi
jmp 0x407ae6
mov byte [ecx], 0
movzx ecx, byte [edx]
cmp ecx, 9
je 0x407ad0
cmp ecx, 0x20
jne 0x407ad4
inc edx
inc eax
jmp 0x407ac3
test ecx, ecx
jne 0x407b51
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x407b2b
push eax
jmp 0x407b30
mov byte [esi - 1], 0
cmp dword [ebp + 0xc], 0
je 0x407b7f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x407b7f
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0x20]
call fcn.004138a0
add esp, 8
test eax, eax
je 0x407b77
push ebx
call fcn.00413db0
add esp, 4
add ebx, eax
inc ebx
mov eax, dword [ebp - 0x18]
inc eax
cmp byte [ebx], 0
jne 0x407b01
jmp 0x407b7f
push str.Strings
push esi
call fcn.004138a0
add esp, 8
test eax, eax
sete al
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
test edi, edi
jne 0x4079d3
jmp 0x407bea
mov esi, dword [ebp - 0x14]
cmp cl, 9
je 0x407b6a
movzx ecx, cl
cmp ecx, 0x20
je 0x407b6a
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407b54
jmp 0x407b6e
mov byte [eax - 1], 0
mov dword [ebp - 0x10], 0
jmp 0x407b44
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [ebp + 0x10]
jb 0x407b8c
test edi, edi
mov esi, dword [ebp - 0x14]
jne 0x4079d3
jmp 0x407bea
push esi
call fcn.00413db0
add esp, 4
inc eax
mov dword [ebp - 0x20], eax
push eax
call fcn.0040a20b
add esp, 4
mov ebx, eax
push dword [ebp - 0x20]
push 0
push eax
call fcn.0040c770
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + edx*4]
mov dword [ecx + edx*4], ebx
test eax, eax
je 0x407bd4
push eax
call fcn.0040a497
add esp, 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [eax + ecx*4]
push esi
push ebx
call fcn.00413930
add esp, 8
inc dword [ebp - 0x24]
jmp 0x407b7f
mov ebx, 6
jmp 0x407c0d
xor eax, eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x10]
setne al
lea ebx, [eax + eax*4]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040a497
add esp, 4
push esi
call fcn.0041242f
add esp, 4
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret