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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x544
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 0x540], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
movzx ecx, word [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x523130
mov eax, dword ds:[edi + 0x3c]
test eax, eax
je 0x523130
cmp eax, 0x7fffffff
jae 0x523130
cmp dword ds:[edi + eax], 0x4550
lea ebx, [edi + eax]
jne 0x523130
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x523130
cmp dword [ebx + 0x7c], 0
je 0x523130
add eax, edi
mov esi, ecx
mov dword [esp + 0x10], eax
cmp esi, dword [eax + 0x18]
jae 0x52318f
lfence
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
add ecx, edi
mov dword [esp + 0x2c], ecx
mov ecx, edx
lea eax, [eax + esi*4]
mov eax, dword [eax + edi]
add eax, edi
mov edi, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x522f33
test dl, dl
je 0x522f2f
mov dl, byte ds:[ecx + 1]
cmp dl, byte [eax + 1]
jne 0x522f33
add ecx, 2
add eax, 2
test dl, dl
jne 0x522f10
xor eax, eax
jmp 0x522f38
sbb eax, eax
or eax, 1
jmp 0x522f40
test eax, eax
jne 0x52318b
mov eax, dword [esp + 0x2c]
lfence
mov ecx, dword [esp + 0x10]
movzx eax, word [eax + esi*2]
mov esi, dword [esp + 0x24]
mov esi, dword [esi + eax*4]
add esi, edi
cmp esi, ecx
jb 0x523171
mov eax, dword [ebx + 0x7c]
add eax, ecx
cmp esi, eax
jae 0x523171
xor eax, eax
push 0x206
lfence
push eax
mov word [esp + 0x140], ax
lea eax, [esp + 0x142]
push eax
call fcn.0057e450
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x522fa0
lea eax, [esp + 0x138]
sub ecx, edx
push eax
push ecx
push esi
call sym.SystemInformer.exe_PhZeroExtendToUtf16Buffer
lea eax, [esp + 0x138]
push eax
call sym.SystemInformer.exe_PhCountStringZ
add eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x138]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push 0x2e
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhSplitStringRefAtChar
test al, al
je 0x523171
xor eax, eax
push 0x206
push eax
mov word [esp + 0x348], ax
lea eax, [esp + 0x34a]
push eax
call fcn.0057e450
mov edi, dword [esp + 0x30]
add esp, 0xc
test edi, edi
je 0x523048
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x523103
cmp edi, 0x208
ja 0x523103
push edi
lea eax, [esp + 0x344]
push ebx
push eax
call fcn.0057e5b0
add esp, 0xc
lea eax, [esp + 0x340]
push eax
call sym.SystemInformer.exe_PhLoadLibrary
mov edi, eax
test edi, edi
je 0x523171
push 0x103
lea eax, [esp + 0x35]
mov byte [esp + 0x34], 0
push 0
push eax
call fcn.0057e450
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x10], 0
push esi
push ebx
push eax
push 0x104
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToUTF8N]
nop
test eax, eax
js 0x523130
cmp byte [esp + 0x30], 0x23
jne 0x523162
lea eax, [esp + 0x10]
add ebx, 2
push eax
push 0xa
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ebx
sub esi, 2
push eax
mov dword [esp + 0x28], esi
call sym.SystemInformer.exe_PhStringToInteger64
mov ecx, edi
test al, al
je 0x523164
push dword [esp + 0x10]
xor edx, edx
call fcn.00522940
mov esi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x540]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [esp + 0x344]
push 0
push eax
call fcn.0057e450
add esp, 0xc
test ebx, ebx
jne 0x52314b
mov edi, edi
call fcn.00586e07
mov dword [eax], 0x16
call fcn.00586d26
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x540]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 4
cmp edi, 0x208
jbe 0x523130
call fcn.00586e07
mov dword ds:[eax], 0x22
jmp 0x52312b
mov ecx, edi
lea edx, [esp + 0x30]
push 0
call fcn.00522940
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x540]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x1c]
push 0
mov ecx, edi
call fcn.00522940
mov ecx, dword [esp + 0x54c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 4