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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [edx + 0xe0]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
test eax, eax
je 0x4b316e
cmp dword [edx + 0xe4], 0
je 0x4b316e
lea esi, [eax + edi]
lea eax, [esi + 0xc]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
push ecx
lea ecx, [esp + 0x2c]
add eax, edi
push ecx
push eax
mov ecx, edi
call fcn.004b28a0
test eax, eax
js 0x4b3170
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
push 0xffffffffffffffff
lfence
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov dword ds:[esp + 0x10], eax
test eax, eax
js 0x4b3170
cmp dword [esi + 4], 0
je 0x4b30df
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx - 8]
mov esi, dword [ecx - 4]
add ebx, edi
mov eax, dword [ecx]
add esi, edi
add eax, edi
mov byte [esp + 0xf], 0
mov edi, dword [ecx + 4]
add edi, dword [esp + 0x1c]
push 0x57e8ac
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x1c], eax
call fcn.00526faf
add esp, 8
test eax, eax
jne 0x4b30c6
mov ecx, 0x57e8ac
mov eax, ebx
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b2f42
test dl, dl
je 0x4b2f3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b2f42
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b2f20
xor eax, eax
jmp 0x4b2f47
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4b2f5a
mov esi, dword [0x5b1d78]
mov dword [esp + 0x10], eax
jmp 0x4b301d
mov esi, dword ds:[esi]
test esi, esi
je 0x4b2f71
mov dword [esp + 0x10], 0
jmp 0x4b3028
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4b2f74
push dword [0x5b1d70]
sub ebx, ecx
lea esi, [ebx + ebx]
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 ebx
push dword [esp + 0x34]
call sym.ProcessHacker.exe_PhZeroExtendToUtf16Buffer
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebx + 4]
call fcn.004b2780
mov esi, eax
test esi, esi
jne 0x4b2fff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4b2fe2
mov byte [esp + 0xf], 1
mov dword [esp + 0x10], 0
jmp 0x4b2fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
jle 0x4b2fff
movzx edx, dx
or edx, 0xc0070000
mov dword [esp + 0x10], edx
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b3012
call fcn.004b3960
cmp dword [esp + 0x10], 0
jl 0x4b30df
lea ecx, [ecx]
test esi, esi
je 0x4b30df
mov eax, dword [edi]
test eax, eax
je 0x4b30a8
mov ecx, dword [esp + 0x14]
sub ecx, edi
test eax, eax
mov dword [esp + 0x14], ecx
mov edi, edi
jns 0x4b3103
movzx edx, word [edi]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4b309a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4b309a
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x4b309a
cmp dword [eax + esi], 0x4550
jne 0x4b309a
lea ecx, [eax + 0x78]
mov eax, dword [ecx + esi]
add ecx, esi
test eax, eax
je 0x4b3096
cmp dword [ecx + 4], 0
je 0x4b3096
push edx
push 0
add eax, esi
push eax
push ecx
mov ecx, esi
call fcn.004b2920
mov ecx, dword [esp + 0x14]
jmp 0x4b309c
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [edi + ecx], eax
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4b303e
mov ecx, dword [esp + 0x34]
mov eax, esi
xchg dword [ecx], eax
cmp eax, esi
jne 0x4b30c6
cmp byte [esp + 0xf], 0
je 0x4b30c6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add ecx, 0x20
mov dword [esp + 0x18], ecx
cmp dword [ecx - 8], 0
jne 0x4b2ed6
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x1c]
add ebx, eax
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4b309a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4b309a
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x4b309a
cmp dword [eax + esi], 0x4550
jne 0x4b309a
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x4b309a
cmp dword [edx + 4], 0
je 0x4b309a
lea ecx, ds:[eax + esi]
push 0
lea eax, [ebx + 2]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004b2920
mov ecx, dword [esp + 0x14]
jmp 0x4b309c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4