Function at 0x4c10a0
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]
mov dword [esp + 0xc], ecx
push ebx
push esi
push edi
test eax, eax
je 0x4c136f
cmp dword [edx + 0xe4], 0
je 0x4c136f
lea esi, [eax + ecx]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
add eax, ecx
mov dword [esp + 0x24], edi
push eax
call fcn.004c0870
test eax, eax
js 0x4c1371
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 [esp + 0x10], eax
test eax, eax
js 0x4c1371
cmp dword ds:[esi + 4], 0
je 0x4c134a
mov edx, dword [ebp + 8]
lea esp, [esp]
mov ebx, dword [edi - 8]
mov ecx, dword [esp + 0x18]
add ebx, ecx
mov esi, dword [edi - 4]
mov eax, dword [edi]
add esi, ecx
mov edi, dword [edi + 4]
add eax, ecx
push edx
push ebx
mov byte [esp + 0x17], 0
add edi, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], eax
call fcn.0053ef6e
add esp, 8
test eax, eax
jne 0x4c1332
mov ecx, 0x598874
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c1193
test dl, dl
je 0x4c118f
mov dl, byte ds:[eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c1193
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c1171
xor eax, eax
jmp 0x4c1198
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4c11ab
mov esi, dword [0x5cd528]
mov dword [esp + 0x10], eax
jmp 0x4c128d
mov esi, dword [esi]
test esi, esi
je 0x4c11bc
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x4c1295
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4c11c0
push dword [0x5cd4f8]
sub ebx, ecx
lea esi, [ebx + ebx]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
mov dword [esp + 0x14], 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 + 0x14]
mov ecx, dword [ebx + 4]
call fcn.004c05e0
mov esi, eax
test esi, esi
jne 0x4c1265
mov ebx, dword [ebx + 4]
push 0x800
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4c1237
push 0xa00
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x4c1244
xor ebx, ebx
mov byte [esp + 0xf], 1
mov dword [esp + 0x10], ebx
jmp 0x4c1269
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jle 0x4c1269
movzx ebx, bx
or ebx, 0xc0070000
mov dword [esp + 0x10], ebx
jmp 0x4c1269
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4c1285
jmp 0x4c1280
call fcn.004c1f60
test ebx, ebx
js 0x4c134a
test esi, esi
je 0x4c134a
mov ecx, dword [edi]
test ecx, ecx
je 0x4c1316
mov ebx, dword [esp + 0x30]
sub ebx, edi
test ecx, ecx
jns 0x4c12f5
movzx ecx, word [edi]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4c12f1
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4c12f1
lea esp, [esp]
cmp eax, 0x7fffffff
jae 0x4c12f1
cmp dword [eax + esi], 0x4550
jne 0x4c12f1
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x4c12f1
cmp dword [edx + 4], 0
je 0x4c12f1
push ecx
add eax, esi
mov ecx, esi
push 0
push eax
call fcn.004c0900
jmp 0x4c130a
xor eax, eax
jmp 0x4c130a
mov edx, dword [esp + 0x18]
movzx eax, word [ecx + edx]
add edx, 2
add edx, ecx
mov ecx, esi
push eax
call fcn.004c0b40
mov dword [edi + ebx], eax
add edi, 4
mov ecx, dword [edi]
test ecx, ecx
jne 0x4c12a3
mov ecx, dword ds:[esp + 0x34]
mov eax, esi
xchg dword [ecx], eax
cmp eax, esi
jne 0x4c1332
cmp byte [esp + 0xf], 0
je 0x4c1332
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
add edi, 0x20
mov dword [esp + 0x1c], edi
cmp dword [edi - 8], 0
jne 0x4c1130
lea eax, ds:[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
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4