Function at 0x4d59a0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x576d70
push 0x5277f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x582654]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0xac], edi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4d5ab3
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], eax
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4d5aac
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x4d5aac
mov ecx, 0x20b
cmp word [eax + 0x18], cx
jne 0x4d5a3a
mov ebx, dword [eax + 0x88]
mov eax, dword [eax + 0x8c]
jmp 0x4d5a40
mov ebx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], ebx
test ebx, ebx
je 0x4d5aac
lea esi, [edi + ebx]
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xa4], 0
mov edx, dword [ebp + 0xc]
cmp edx, 0x10000
jae 0x4d5a81
mov dword [ebp - 0xa4], edx
cmp dword [esi + 0x14], edx
jb 0x4d5aac
lea ecx, [edx - 1]
jmp 0x4d5b96
xor ebx, ebx
mov dword [ebp - 0xc8], ebx
mov eax, edx
mov dword [ebp - 0xa8], eax
cmp byte [eax], 0
je 0x4d5aba
inc eax
mov dword [ebp - 0xa8], eax
inc ebx
mov dword [ebp - 0xc8], ebx
cmp ebx, 0x100
jb 0x4d5a91
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4d5c8d
mov esi, dword [ebp - 0xb0]
mov ecx, dword [esi + 0x20]
mov edi, dword [ebp - 0xac]
add ecx, edi
mov byte [ebp - 0x9e], 0
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xb8], ecx
cmp eax, dword [esi + 0x18]
jae 0x4d5b5d
mov esi, dword [ecx]
add esi, edi
mov dword [ebp - 0xcc], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa8], edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4d5aac
mov byte [ebp - 0x9d], 1
xor edx, edx
mov dword [ebp - 0xd0], edx
cmp edx, ebx
jae 0x4d5b33
movsx eax, byte [edi]
movzx ecx, byte [esi]
sub ecx, eax
jne 0x4d5b3c
inc esi
mov dword [ebp - 0xcc], esi
inc edi
mov dword [ebp - 0xa8], edi
inc edx
jmp 0x4d5b0e
cmp byte [ebp - 0x9d], 0
jne 0x4d5b74
mov ecx, dword [ebp - 0xb8]
add ecx, 4
mov eax, dword [ebp - 0xa4]
inc eax
mov edi, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
jmp 0x4d5ad4
cmp byte [ebp - 0x9e], 0
jne 0x4d5b80
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4d5c8d
mov edi, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0xa4]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov ebx, dword [ebp - 0xbc]
mov dword [ebp - 0xa4], ecx
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + edi]
add ecx, edi
mov dword [ebp - 0xb4], ecx
lea eax, [edi + ebx]
cmp ecx, eax
jb 0x4d5c20
mov eax, dword [ebp - 0xc0]
add eax, edi
add eax, ebx
cmp ecx, eax
jae 0x4d5c20
lea edx, [ebp - 0x9c]
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4d5bd0
push 0x57cd28
lea eax, [ebp - 0x9c]
push eax
call fcn.00527540
add esp, 8
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x4d5c04
mov byte [eax], 0
inc eax
mov dword [ebp - 0xd4], eax
push eax
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.004d59a0
mov ecx, eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0xfffffffe
jmp 0x4d5c8b
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8