Function at 0x4063b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x4063cd
xor eax, eax
jmp 0x406a68
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov edi, eax
or edi, edi
jl case.0x4063e6.4
cmp edi, 5
jg case.0x4063e6.4
jmp dword [edi*4 + 0x4212cc]
mov esi, dword [ebp + 8]
mov ebx, 0x10000
jmp 0x406609
mov eax, dword [0x41fab4]
mov dword [ebp - 0x10], eax
mov eax, dword [0x41fab4]
mov dword [ebp - 0x14], eax
mov eax, 0x10000
cmp eax, esi
jge 0x40641c
mov dword [ebp - 0x18], 0x10000
jmp 0x40641f
mov dword [ebp - 0x18], esi
push dword [ebp - 0x18]
push dword [0x41fab4]
call fcn.004058df
add esp, 8
mov ebx, eax
or eax, eax
jne 0x406440
mov eax, 0x33
jmp 0x406a68
sub esi, ebx
mov eax, dword [0x41fab4]
mov byte [eax + ebx], 0
jmp 0x406468
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0xd
je 0x40644d
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
mov byte [eax], dl
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x406450
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
cmp dword [ebp + 0xc], 5
jne 0x4064d0
mov eax, dword [0x4139c4]
cmp dword [eax + 0x10], 0
je 0x40649c
cmp dword [eax + 0x10], 6
je 0x40649c
cmp dword [eax + 0x10], 0xb
jne 0x4064af
cmp byte [0x41fa28], 0x32
jne 0x4064af
push dword [0x41fab4]
push dword [0x41fab4]
call sub.USER32.DLL_OemToCharA
jmp 0x4064bf
mov eax, dword [0x41fab4]
cmp eax, eax
je 0x4064bf
push eax
push eax
call fcn.00411ab4
push dword [0x41fab4]
push dword [0x41fab4]
call sub.USER32.DLL_CharToOemA
mov eax, dword [0x41fab4]
dec eax
mov dword [ebp - 0x10], eax
lea eax, [0x4139c8]
mov dword [ebp - 0x14], eax
jmp 0x4065d8
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x1b
jne 0x40650a
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov byte [eax], 0x5e
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov byte [eax], 0x5b
jmp 0x406572
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x13
jne 0x406565
mov dword [ebp - 0x1c], 1
cmp byte [eax + 1], 0xa
jne 0x406532
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
inc edx
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [eax], dl
jmp 0x406572
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0xd
jne 0x406572
cmp byte [eax + 2], 0xa
jne 0x406572
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
inc edx
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [eax], dl
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
inc edx
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [eax], dl
jmp 0x406572
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
mov byte [eax], dl
mov eax, dword [ebp - 0x14]
lea edx, [0x4139c8]
sub eax, edx
cmp eax, 0x7ffd
ja 0x40658a
cmp dword [ebp - 0x1c], 0
je 0x4065d8
push 0
mov eax, dword [ebp - 0x14]
lea edx, [0x4139c8]
sub eax, edx
push eax
push 0x4139c8
push 0x413218
call dword [0x41fc00]
add esp, 0x10
lea eax, [0x4139c8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 0
je 0x4065d8
cmp dword [0x413290], 0
je 0x4065d8
push 0
push 0x4212a9
push 0x413218
call dword [0x41fc08]
add esp, 0xc
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp byte [eax], 0
jne 0x4064e7
push 0
mov eax, dword [ebp - 0x14]
lea edx, [0x4139c8]
sub eax, edx
push eax
push 0x4139c8
push 0x413218
call dword [0x41fc00]
add esp, 0x10
or esi, esi
jle 0x406615
or ebx, ebx
jg 0x4063fa
push 0x40
push 0
push 0x4139c8
push 0x413218
call dword [0x41fc00]
add esp, 0x10
jmp case.0x4063e6.4
mov word [ebp - 6], 0
cmp dword [ebp + 8], 0x104
jb 0x406682
push 0x4212a4
push 0x4139c8
call sub.CRTDLL.DLL_sprintf
push 0x401
push eax
push 0x4139c8
push 0x413218
call dword [0x41fc00]
add esp, 0x18
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
sub eax, 0x103
mov word [ebp - 6], ax
mov dword [ebp + 8], 0x103
push dword [ebp + 8]
push 0x41fac8
call fcn.004058df
add esp, 8
or eax, eax
jne 0x4066a0
mov eax, 0x33
jmp 0x406a68
mov eax, dword [ebp + 8]
mov byte [eax + 0x41fac8], 0
mov eax, dword [0x4139c4]
cmp dword [eax + 0x10], 0
je 0x4066cb
cmp dword [eax + 0x10], 6
je 0x4066cb
cmp dword [eax + 0x10], 0xb
jne 0x4066dc
cmp byte [0x41fa28], 0x32
jne 0x4066dc
push 0x41fac8
push 0x41fac8
call sub.USER32.DLL_OemToCharA
jmp 0x4066fb
lea eax, [0x41fac8]
lea edx, [0x41fac8]
cmp eax, edx
je 0x4066fb
push 0x41fac8
push 0x41fac8
call fcn.00411ab4
mov eax, dword [0x4139c4]
test byte [eax + 0x18], 0x10
je 0x406764
lea eax, [0x41fac7]
mov dword [ebp - 0x10], eax
lea eax, [0x41fac8]
mov dword [ebp - 0x14], eax
jmp 0x406752
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edx, eax
inc edx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
movsx edx, byte [edx]
test byte [edx + str.________________________________H], 1
je 0x406747
mov edx, dword [ebp - 0x10]
movsx edx, byte [edx]
push edx
call sub.CRTDLL.DLL_tolower
pop ecx
mov ebx, eax
jmp 0x40674d
mov edx, dword [ebp - 0x10]
movsx ebx, byte [edx]
mov edx, dword [ebp - 0x18]
mov byte [edx], bl
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp byte [eax], 0
jne 0x40671a
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov eax, dword [0x4139c4]
test byte [eax + 0x18], 0x20
je 0x40679c
cmp dword [ebp + 8], 8
jbe 0x40679c
cmp byte [0x41fad0], 0x2e
jne 0x40679c
lea eax, [0x41fad0]
mov dword [ebp - 0x10], eax
jmp 0x406791
mov eax, dword [ebp - 0x10]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x406789
cmp word [ebp - 6], 0
je case.0x4063e6.4
push 0x4179c8
push 0x41fac8
call fcn.00402e7f
push eax
push str.___s___n
push 0x4139c8
call sub.CRTDLL.DLL_sprintf
mov edi, eax
push 0x401
push edi
push 0x4139c8
push 0x413218
call dword [0x41fc00]
add esp, 0x24
movzx eax, word [ebp - 6]
mov dword [ebp + 8], eax
mov eax, dword [0x41f9fc]
sub eax, dword [0x41fa00]
mov edx, dword [0x41f9d4]
sub edx, dword [0x41f9d0]
add eax, edx
add eax, dword [ebp + 8]
add eax, dword [0x41fa00]
mov dword [ebp - 0x10], eax
mov ecx, 0x2000
cdq
idiv ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, edx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 0
jge 0x406860
push 0x42105e
push dword [0x41f9f0]
push 0x42105b
push 0x4139c8
call sub.CRTDLL.DLL_sprintf
push 1
push eax
push 0x4139c8
push 0x413218
call dword [0x41fc00]
add esp, 0x20
mov eax, 3
jmp 0x406a68
mov eax, dword [0x41f9fc]
cmp dword [ebp - 0x18], eax
je 0x4068c7
push 0
push dword [ebp - 0x18]
push dword [0x41f9f4]
call sub.CRTDLL.DLL__lseek
mov dword [0x41f9fc], eax
push 0x2000
push dword [0x41f9d0]
push dword [0x41f9f4]
call sub.CRTDLL.DLL__read
add esp, 0x18
mov dword [0x41f9d8], eax
or eax, eax
jg 0x4068ab
mov eax, 0x33
jmp 0x406a68
mov eax, dword [ebp - 0x14]
add eax, dword [0x41f9d0]
mov dword [0x41f9d4], eax
mov eax, dword [ebp - 0x14]
sub dword [0x41f9d8], eax
jmp case.0x4063e6.4
mov eax, dword [0x41f9d4]
sub eax, dword [0x41f9d0]
sub eax, dword [ebp - 0x14]
add dword [0x41f9d8], eax
mov eax, dword [ebp - 0x14]
add eax, dword [0x41f9d0]
mov dword [0x41f9d4], eax
jmp case.0x4063e6.4
cmp dword [0x41fa04], 0
je 0x406903
push dword [0x41fa04]
call sub.CRTDLL.DLL_free
pop ecx
push dword [ebp + 8]
call sub.CRTDLL.DLL_malloc
add esp, 4
mov dword [0x41fa04], eax
or eax, eax
jne 0x406a49
push dword [ebp + 8]
push 0x4212a5
push 0x4139c8
call sub.CRTDLL.DLL_sprintf
add esp, 0xc
push 0x401
push eax
push 0x4139c8
push 0x413218
call dword [0x41fc00]
add esp, 0x10
mov eax, dword [0x41f9fc]
sub eax, dword [0x41fa00]
mov edx, dword [0x41f9d4]
sub edx, dword [0x41f9d0]
add eax, edx
add eax, dword [ebp + 8]
add eax, dword [0x41fa00]
mov dword [ebp - 0x10], eax
mov ecx, 0x2000
cdq
idiv ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, edx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 0
jge 0x4069c4
push 0x42105e
push dword [0x41f9f0]
push 0x42105b
push 0x4139c8
call sub.CRTDLL.DLL_sprintf
add esp, 0x10
push 1
push eax
push 0x4139c8
push 0x413218
call dword [0x41fc00]
add esp, 0x10
mov eax, 3
jmp 0x406a68
mov eax, dword [0x41f9fc]
cmp dword [ebp - 0x18], eax
je 0x406a25
push 0
push dword [ebp - 0x18]
push dword [0x41f9f4]
call sub.CRTDLL.DLL__lseek
mov dword [0x41f9fc], eax
push 0x2000
push dword [0x41f9d0]
push dword [0x41f9f4]
call sub.CRTDLL.DLL__read
add esp, 0x18
mov dword [0x41f9d8], eax
or eax, eax
jg 0x406a0c
mov eax, 0x33
jmp 0x406a68
mov eax, dword [ebp - 0x14]
add eax, dword [0x41f9d0]
mov dword [0x41f9d4], eax
mov eax, dword [ebp - 0x14]
sub dword [0x41f9d8], eax
jmp case.0x4063e6.4
mov eax, dword [0x41f9d4]
sub eax, dword [0x41f9d0]
sub eax, dword [ebp - 0x14]
add dword [0x41f9d8], eax
mov eax, dword [ebp - 0x14]
add eax, dword [0x41f9d0]
mov dword [0x41f9d4], eax
jmp case.0x4063e6.4
push dword [ebp + 8]
push dword [0x41fa04]
call fcn.004058df
add esp, 8
or eax, eax
jne case.0x4063e6.4
mov eax, 0x33
jmp 0x406a68
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret