Function at 0x4a22f0
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4a2614
cmp dword [esi + 0x84], 0
je 0x4a2614
movzx edi, word [esi + 6]
add eax, ebx
xor edx, edx
mov dword [esp + 0x18], eax
test edi, edi
je 0x4a2362
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x24]
add ecx, eax
jmp 0x4a2340
mov esi, dword [ecx]
lea eax, [esi + ebx]
cmp dword [esp + 0x18], eax
jb 0x4a235a
mov eax, dword [ecx + 4]
add eax, esi
mov esi, dword [esp + 0x18]
add eax, ebx
cmp esi, eax
jb 0x4a236e
inc edx
add ecx, 0x28
cmp edx, edi
jb 0x4a2340
mov eax, 0xc0000049
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
mov edi, ebx
mov edx, dword [ecx - 4]
add eax, edi
je 0x4a2362
test edx, edx
je 0x4a2362
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
push eax
lea eax, [esp + 0x38]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
js 0x4a2619
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4a25f2
jmp 0x4a23c0
lea edx, [ecx + edi]
mov dword [esp + 0x34], esi
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x1c], edx
lea eax, [ecx + edi]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
test eax, eax
cmovne ecx, eax
mov eax, edx
lea ebx, [ecx + edi]
mov ecx, 0x532d18
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a2406
test dl, dl
je 0x4a2402
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a2406
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a23e6
xor eax, eax
jmp 0x4a240b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4a241a
mov esi, dword [sym.ProcessHacker.exe_PhInstanceHandle]
jmp 0x4a24ba
mov edi, dword [esp + 0x1c]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4a2421
push dword [0x54b7b4]
sub edi, ecx
lea esi, [edi + edi]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
mov dword [esp + 0x30], eax
lea ecx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov word [ecx + esi], dx
push dword [eax + 4]
push edi
push dword [esp + 0x24]
call sym.ProcessHacker.exe_PhZeroExtendToUtf16Buffer
mov edi, dword [esp + 0x30]
mov ecx, dword [edi + 4]
call fcn.004a2030
mov esi, eax
test esi, esi
jne 0x4a24a3
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4a2486
mov dword [esp + 0x14], 0
jmp 0x4a24a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
jle 0x4a24a3
movzx edx, dx
or edx, 0xc0070000
mov dword [esp + 0x14], edx
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4a24b6
call fcn.004a2a20
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test edx, edx
js 0x4a25e9
mov eax, dword [ebx]
test eax, eax
je 0x4a25a5
sub dword [esp + 0x20], ebx
test eax, eax
jns 0x4a2542
movzx edi, word [ebx]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4a2520
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a2520
cmp eax, 0x10000000
jae 0x4a2520
cmp dword [eax + esi], 0x4550
jne 0x4a2520
lea ecx, [eax + 0x78]
mov eax, dword [ecx + esi]
add ecx, esi
test eax, eax
je 0x4a2520
cmp dword [ecx + 4], 0
je 0x4a2520
push edi
push 0
add eax, esi
push eax
push ecx
mov ecx, esi
call fcn.004a2140
test eax, eax
jne 0x4a258d
push dword [esp + 0x1c]
push edi
push str.Error_locating_ordinal:__u_r_nModule:__hs
push 0x10
push 0
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x14
mov eax, 0xc0000138
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add edi, eax
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4a25c4
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a25c4
cmp eax, 0x10000000
jae 0x4a25c4
cmp dword [eax + esi], 0x4550
jne 0x4a25c4
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x4a25c4
cmp dword [edx + 4], 0
je 0x4a25c4
lea ecx, [eax + esi]
push 0
lea eax, [edi + 2]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004a2140
test eax, eax
je 0x4a25c4
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov dword [ecx + ebx], eax
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4a24d6
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
add esi, 0x14
mov dword [esp + 0x18], esi
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x4a25f2
mov edi, dword [esp + 0x10]
jmp 0x4a23c0
push dword [esp + 0x1c]
lea ecx, [edi + 2]
push ecx
push str.Error_locating_procedure:__hs_r_nModule:__hs
push 0x10
push 0
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x14
mov eax, 0xc000007a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc0000020
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret