Function at 0x4e742f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edx
push edx
push 3
push edx
push 1
mov dword [esi], edx
push SysReAllocString
mov dword [edi], edx
or dword [ecx], 0xffffffff
push eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x190], ecx
mov byte [ebp - 0x181], dl
mov dword [ebp - 0x18c], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e74ed
mov ebx, dword [ebp - 0x188]
test ebx, ebx
je 0x4e769a
push 0x25
push ebx
call fcn.004f5617
pop ecx
pop ecx
test eax, eax
je 0x4e769a
push ebx
call fcn.004e2cec
mov dword [ebp - 0x18c], eax
pop ecx
test eax, eax
je 0x4e769a
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e7689
mov ecx, dword [ebp - 0x18c]
mov dword [ebp - 0x188], ecx
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4e7517
mov ecx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x38]
mov dword [ecx], eax
push dword [ebp - 0x188]
call fcn.004e5a3d
mov dword [ebp - 0x190], eax
pop ecx
test eax, eax
je 0x4e7563
push eax
call fcn.004e76af
pop ecx
test al, al
je 0x4e7563
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xfe
call fcn.004e3cd3
push 0x20
pop ecx
push 0x40
test al, al
mov byte [ebp - 0x181], 1
pop edx
cmovne ecx, edx
mov dword [edi], ecx
jmp 0x4e7689
push 0
lea eax, [ebp - 0x194]
push eax
push 0x40
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e7682
mov eax, 0x5a4d
cmp word [ebp - 0x78], ax
je 0x4e75c6
mov eax, dword [ebp - 0x190]
test eax, eax
je 0x4e7682
push str..com
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4e7682
mov dword [esi], 0xff
mov dword [edi], 0x10
mov byte [ebp - 0x181], 1
jmp 0x4e7682
push 0
push 0
push dword [ebp - 0x3c]
mov dword [esi], 0xff
push ebx
mov dword [edi], 0x10
mov byte [ebp - 0x181], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4e7682
push 0
lea eax, [ebp - 0x194]
push eax
push 0x108
lea eax, [ebp - 0x180]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e7682
cmp dword [ebp - 0x180], 0x4550
jne 0x4e7652
movzx eax, word [ebp - 0x168]
cmp eax, 0x10b
je 0x4e7641
cmp eax, 0x20b
jne 0x4e7682
movzx eax, word [ebp - 0x124]
mov dword [esi], eax
mov dword [edi], 0x40
jmp 0x4e7682
movzx eax, word [ebp - 0x124]
mov dword [esi], eax
mov dword [edi], 0x20
jmp 0x4e7682
mov eax, 0x454e
cmp word [ebp - 0x180], ax
jne 0x4e7682
mov al, byte [ebp - 0x14a]
mov dword [edi], 0x20
cmp al, 2
je 0x4e767c
cmp al, 4
je 0x4e767c
mov dword [esi], 3
jmp 0x4e7682
mov dword [esi], 2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x4e769a
push eax
call fcn.004e1bea
pop ecx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x181]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f4166
leave
ret