Function at 0x6d0180
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov esi, dword [esp + 0x90]
mov dword [esp + 4], 0x20
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x6d01a5
mov byte [eax], 0
mov eax, dword [esp + 0x98]
mov dword [esp + 0x28], 0xb
lea ebx, [esp + 0x50]
mov dword [esp + 0x1c], 1
sub eax, 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
nop
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0x98]
mov dword [esp + 8], 0
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
lea eax, [eax + eax*4]
shl eax, 5
mov dword [esp + 0x2c], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [esp + 0x94]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_fread
lea eax, [esp + 0x40]
mov dword [esp + 4], 0x20
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x6d0588
mov byte [eax], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 8], 0
lea ebp, [eax + eax*4]
mov eax, dword [esp + 0x94]
shl ebp, 5
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [esp + 0x94]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
call sub.msvcrt.dll_fread
lea eax, [esp + 0x60]
mov dword [esp + 4], 0x20
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x6d0578
mov byte [eax], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 0
lea edi, [eax + eax*4 - 5]
mov eax, dword [esp + 0x94]
shl edi, 5
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [esp + 0x94]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
je 0x6d0568
mov byte [eax], 0
lea eax, [esp + 0x40]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll__stricmp
test eax, eax
je 0x6d065f
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll__stricmp
test eax, eax
je 0x6d0710
lea eax, [esp + 0x60]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll__stricmp
test eax, eax
je 0x6d071f
sub dword [esp + 0x28], 1
je 0x6d0600
movzx eax, byte [esi]
xor edi, edi
test al, al
jne 0x6d03af
jmp 0x6d0498
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
mov edx, ebp
movzx ebp, dl
cmp eax, ebp
jg 0x6d03b9
jl 0x6d0498
add edi, 1
movzx eax, byte [esi + edi]
test al, al
je 0x6d0498
movzx ebp, byte [ebx + edi]
mov ecx, ebp
test cl, cl
jne 0x6d0388
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x98]
mov dword [esp + 8], 0
mov edi, eax
shr edi, 0x1f
add edi, eax
sar edi, 1
lea eax, [edi + edi*4 - 5]
mov dword [esp + 0x1c], edi
shl eax, 5
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [esp + 0x94]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
je 0x6d05e0
mov byte [eax], 0
movzx eax, byte [esi]
xor ebp, ebp
test al, al
je 0x6d059c
mov dword [esp + 0x20], edi
mov edi, ebp
jmp 0x6d0477
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
mov edx, ebp
movzx ebp, dl
cmp eax, ebp
jg 0x6d0481
jl 0x6d0598
add edi, 1
movzx eax, byte [esi + edi]
test al, al
je 0x6d0598
movzx ebp, byte [ebx + edi]
mov edx, ebp
test dl, dl
jne 0x6d0450
mov edi, dword [esp + 0x20]
lea eax, [edi - 1]
mov dword [esp + 0x20], eax
jmp 0x6d01d0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 0
add eax, ecx
mov ebp, eax
shr ebp, 0x1f
add ebp, eax
sar ebp, 1
lea eax, [ebp + ebp*4 - 5]
shl eax, 5
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [esp + 0x94]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
je 0x6d05f0
mov byte [eax], 0
movzx eax, byte [esi]
xor edi, edi
test al, al
je 0x6d0731
mov dword [esp + 0x18], ebp
mov ebp, edi
jmp 0x6d0543
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
mov ecx, edi
movzx edi, cl
cmp eax, edi
jg 0x6d054d
jl 0x6d05c0
add ebp, 1
movzx eax, byte [esi + ebp]
test al, al
je 0x6d05c0
movzx edi, byte [ebx + ebp]
mov ecx, edi
test cl, cl
jne 0x6d0520
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
sub eax, 1
mov dword [esp + 0x20], eax
jmp 0x6d01d0
mov byte [esp + 0x5f], 0
jmp 0x6d0326
mov byte [esp + 0x6f], 0
jmp 0x6d02c2
mov byte [esp + 0x4f], 0
jmp 0x6d0257
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x98], edi
mov dword [esp + 0x1c], eax
sub eax, 1
mov dword [esp + 0x20], eax
mov eax, edi
sub eax, 1
mov dword [esp + 0x24], eax
jmp 0x6d01d0
mov ebp, dword [esp + 0x18]
mov eax, ebp
mov dword [esp + 0x98], ebp
sub eax, 1
mov dword [esp + 0x24], eax
jmp 0x6d01d0
mov byte [esp + 0x5f], 0
jmp 0x6d0431
mov byte [esp + 0x5f], 0
jmp 0x6d050b
mov eax, dword [esp + 0x9c]
mov dword [eax], 0
mov eax, dword [esp + 0x9c]
mov dword [eax + 0x88], 0
mov eax, dword [esp + 0x9c]
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x28]
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x8c
shr ecx, 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0xa0]
mov dword [eax], 0x525245
mov eax, dword [esp + 0x1c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x94]
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [esp + 0x94]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [esp + 0x94]
mov dword [esp + 8], 0x23
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [esp + 0x94]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [esp + 0xa0]
mov byte [eax + 4], 0
mov eax, dword [esp + 0x1c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov edx, edi
mov dword [esp + 0x1c], eax
jmp 0x6d0663
mov eax, dword [esp + 0x98]
mov edx, ebp
mov dword [esp + 0x1c], eax
jmp 0x6d0663
mov eax, ebp
mov dword [esp + 0x98], ebp
sub eax, 1
mov dword [esp + 0x24], eax
jmp 0x6d01d0