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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4bea48
push 0x48dcf0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4c97a0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov edi, eax
mov dword [ebp - 0x20], edi
xor ebx, ebx
cmp eax, ebx
jne 0x42ef8d
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x20], eax
mov edi, eax
mov dword [ebp - 4], ebx
mov eax, 0x5a4d
cmp word [edi], ax
je 0x42efa4
push 0xc1
jmp 0x42f13d
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
je 0x42efbb
push 0xbf
jmp 0x42f13d
cmp word [eax + 0x14], bx
je 0x42f138
mov eax, dword [eax + 0x78]
cmp eax, ebx
je 0x42f138
lea esi, [eax + edi]
mov dword [ebp - 0x30], esi
cmp esi, ebx
je 0x42f138
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x42efed
lea ecx, [eax + edi]
mov dword [ebp - 0x1c], ecx
jmp 0x42eff2
mov dword [ebp - 0x1c], ebx
mov ecx, ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x42f000
add eax, edi
mov dword [ebp - 0x28], eax
jmp 0x42f003
mov dword [ebp - 0x28], ebx
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x42f012
lea edx, [eax + edi]
mov dword [ebp - 0x24], edx
jmp 0x42f018
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ebx
cmp ebx, dword [esi + 0x14]
jae 0x42f109
test ecx, ecx
je 0x42f036
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x42f036
add eax, edi
mov dword [ebp + 8], eax
jmp 0x42f03d
mov dword [ebp + 8], 0
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x34], eax
cmp eax, dword [esi + 0x18]
jae 0x42f06e
movzx edi, word [edx + eax*2]
cmp edi, ebx
jne 0x42f0ef
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x42f06a
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x42f06a
mov ecx, dword [ebp - 0x20]
add eax, ecx
jmp 0x42f06c
xor eax, eax
mov ecx, eax
mov eax, dword [esi + 0x10]
add eax, ebx
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp + 8]
push edx
push ecx
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042f4d0
test eax, eax
je 0x42f109
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x42f0fd
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx + ebx*4]
push 0x1c
lea edx, [ebp - 0x58]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [ebp - 0x44], 4
je 0x42f0f5
lea eax, [ebp - 0x44]
push eax
push 4
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub edi, dword [ebp + 8]
add dword [esi], edi
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp - 0x30]
inc ebx
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
jmp 0x42f015
inc eax
jmp 0x42f041
sub edi, dword [ebp + 8]
add dword [esi], edi
mov esi, dword [ebp - 0x30]
inc ebx
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
jmp 0x42f015
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret