Function at 0x4d219c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 3
xor edi, edi
push ebp
push 0x4d2418
push dword fs:[edi]
mov dword fs:[edi], esp
mov eax, 0x8001
call fcn.00402f14
mov dword [ebp - 0x18], eax
xor edi, edi
push ebp
push 0x4d2407
push dword fs:[edi]
mov dword fs:[edi], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
cmp eax, dword [ebp + 8]
jbe 0x4d23f1
xor ecx, ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.004cd0d0
xor esi, esi
push 0
lea eax, [ebp - 0x14]
push eax
push 0x8000
mov ebx, dword [ebp - 0x18]
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x14], 0
jne 0x4d2230
call fcn.0040429c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d2422
mov edx, ebx
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4d23e1
inc eax
xor ebx, ebx
xor ecx, ecx
mov cl, byte [edx]
cmp ecx, 0x42
jg 0x4d2262
je 0x4d2342
sub ecx, 0x2a
je 0x4d2279
sub ecx, 3
je 0x4d22e6
jmp 0x4d23d8
sub ecx, 0x50
je 0x4d2374
sub ecx, 2
je 0x4d23b5
jmp 0x4d23d8
mov ecx, esi
shl ecx, 0xf
add ecx, ebx
add ecx, 5
add ecx, dword [ebp + 8]
mov edi, dword [ebp - 4]
cmp ecx, dword [edi + 0x4c]
jae 0x4d23d8
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 1], 0x2a
jne 0x4d23d8
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 2], 0x41
jne 0x4d23d8
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 3], 0x43
jne 0x4d23d8
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 4], 0x45
jne 0x4d23d8
mov eax, esi
shl eax, 0xf
sub ebx, 7
add eax, ebx
inc eax
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 5
jmp 0x4d23e1
mov ecx, esi
shl ecx, 0xf
add ecx, ebx
add ecx, 5
add ecx, dword [ebp + 8]
mov edi, dword [ebp - 4]
cmp ecx, dword [edi + 0x4c]
jae 0x4d23d8
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 1], 0x6c
jne 0x4d23d8
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 2], 0x68
jne 0x4d23d8
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + ebx + 4], 0x2d
jne 0x4d23d8
mov eax, esi
shl eax, 0xf
add ebx, eax
dec ebx
add ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x12
jmp 0x4d23e1
mov ecx, dword [ebp - 0x18]
add ecx, ebx
cmp dword [ecx], 0x7054842
jne 0x4d23d8
add ecx, 4
cmp dword [ecx], 0x84c3940f
je 0x4d23d8
mov eax, esi
shl eax, 0xf
add ebx, eax
inc ebx
add ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xb
jmp 0x4d23e1
mov ecx, dword [ebp - 0x18]
add ecx, ebx
cmp dword [ecx], 0x4034b50
jne 0x4d23d8
add ecx, 4
cmp dword [ecx], 0x3d0b74
je 0x4d23d8
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x1d
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004d1ac0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d23e1
mov eax, esi
shl eax, 0xf
add ebx, eax
add ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
jmp 0x4d23e1
mov ecx, dword [ebp - 0x18]
add ecx, ebx
cmp dword [ecx], 0x21726152
jne 0x4d23d8
mov eax, esi
shl eax, 0xf
add ebx, eax
inc ebx
add ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x19
jmp 0x4d23e1
inc edx
inc ebx
dec eax
jne 0x4d2240
cmp dword [ebp - 0x10], 0
ja 0x4d23f1
inc esi
cmp esi, 6
jne 0x4d2200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d240e
mov eax, dword [ebp - 0x18]
call fcn.00402f2c
ret
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4