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

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xfffffffffffffffe
push 0x508f28
push 0x4b7620
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x52e144]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x80], 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 + 0x8c]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40ffbc
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], esi
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40ffb5
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x40ffb5
mov ecx, 0x20b
cmp word [eax + 0x18], cx
jne 0x40ff66
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x8c]
jmp 0x40ff6c
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], ecx
cmp ecx, esi
je 0x40ffb5
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp + 0x90]
cmp ebx, 0x10000
jae 0x40ff92
mov dword [ebp - 0x1c], ebx
lea eax, [ebx - 1]
jmp 0x410050
xor edx, edx
mov dword [ebp - 0x34], edx
mov eax, ebx
mov dword [ebp - 0x24], eax
lea esp, [esp]
cmp byte [eax], 0
je 0x40ffc3
inc eax
mov dword [ebp - 0x24], eax
inc edx
mov dword [ebp - 0x34], edx
cmp edx, 0x100
jb 0x40ffa0
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x410104
mov eax, dword [edi + ecx + 0x20]
add eax, edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], esi
nop
mov edx, dword [ebp - 0x1c]
cmp edx, dword [edi + ecx + 0x18]
jae 0x41002a
mov esi, dword [eax]
add esi, edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x24], ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40ffb5
mov dword [ebp - 0x3c], eax
cmp eax, dword [ebp - 0x34]
jae 0x41000d
movsx ecx, byte [ebx]
movzx edx, byte [esi]
sub edx, ecx
jne 0x410013
inc esi
mov dword [ebp - 0x48], esi
inc ebx
mov dword [ebp - 0x24], ebx
inc eax
jmp 0x40fff0
mov al, 1
test al, al
jne 0x41003c
add dword [ebp - 0x2c], 4
inc dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x90]
xor esi, esi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
jmp 0x40ffd0
xor al, al
jne 0x410041
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x410104
xor esi, esi
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi + ecx + 0x24]
mov edx, dword [ebp - 0x1c]
lea eax, [eax + edx*2]
add eax, edi
movzx eax, word [eax]
mov dword [ebp - 0x1c], eax
mov edx, dword [edi + ecx + 0x1c]
lea eax, [edx + eax*4]
add eax, edi
mov eax, dword [eax]
add eax, edi
mov dword [ebp - 0x28], eax
lea edx, [edi + ecx]
cmp eax, edx
jb 0x4100b5
mov edx, dword [ebp - 0x30]
add edi, edx
add edi, ecx
cmp eax, edi
jae 0x4100b5
lea edx, [ebp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x410078
push 0x50e4dc
lea eax, [ebp]
push eax
call fcn.004b9929
add esp, 8
mov dword [ebp - 0x44], eax
cmp eax, esi
je 0x4100a1
mov byte [eax], 0
inc eax
mov dword [ebp - 0x44], eax
push eax
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0040fed0
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x410104
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.004b6da3
add ebp, 0x84
mov esp, ebp
pop ebp
ret 8