Function at 0x51b620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
mov ebx, ecx
lea edx, [esp + 0x4c]
push edi
mov dword [esp + 0x30], ebx
call fcn.0051b300
test eax, eax
js 0x51b66e
test byte [esp + 0x70], 0x10
je 0x51b66e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ebx], 2
mov dword [esp + 0x10], eax
jb 0x51b69d
mov ecx, dword [ebx + 4]
movzx eax, word [ecx]
mov edx, eax
cmp eax, 0x41
jb 0x51b69d
cmp edx, 0x5a
ja 0x51b69d
cmp word [ecx + 2], 0x3a
jne 0x51b69d
cmp word [ecx + 4], 0x5c
je 0x51b961
lea edx, [esp + 0xa0]
mov ecx, ebx
call fcn.0051b300
test eax, eax
js 0x51b6f0
test byte [esp + 0xc0], 0x10
je 0x51b6f0
mov ecx, dword [ebx]
test ecx, ecx
jne 0x51b6ce
nop
call sym.SystemInformer.exe_PhReferenceEmptyString
mov dword [esp + 0x10], eax
jmp 0x51b785
mov eax, dword [ebx + 4]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x2c], ecx
call sym.SystemInformer.exe_PhCreateString3
mov dword [esp + 0x10], eax
jmp 0x51b785
mov esi, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
test esi, esi
je 0x51b781
mov dword [esp + 0x1c], esi
lea esp, [esp]
push 0
push 0x5c
lea eax, [esp + 0x30]
push eax
call sym.SystemInformer.exe_PhFindLastCharInStringRef
mov esi, dword [esp + 0x1c]
mov edi, ebx
mov dword [esp + 0x18], edi
cmp eax, 0xffffffff
je 0x51b730
lea esi, [eax + eax]
mov dword [esp + 0x14], esi
test esi, esi
je 0x51b753
lea edx, [esp + 0x78]
lea ecx, [esp + 0x14]
call fcn.0051b300
test eax, eax
js 0x51b753
test byte [esp + 0x98], 0x10
jne 0x51b767
mov dword [esp + 0x28], esi
mov ebx, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x51b710
jmp 0x51b781
push 0
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ebx
push eax
mov dword [esp + 0x2c], esi
call sym.SystemInformer.exe_PhCreateString3
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x51b961
mov edx, dword [ecx]
test edx, edx
je 0x51b961
mov esi, dword [ebx]
or eax, 0xffffffff
mov edi, dword [ebx + 4]
sub esi, edx
add edi, 2
add esi, 0xfffffffe
add edi, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
test esi, esi
je 0x51b918
mov ebx, ecx
nop
push 0
push 0x5c
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhFindCharInStringRef
mov dword [esp + 0x38], edi
cmp eax, 0xffffffff
jne 0x51b7df
mov eax, esi
xor edi, edi
xor esi, esi
jmp 0x51b7eb
add eax, eax
add edi, 2
sub esi, eax
add edi, eax
sub esi, 2
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], eax
test eax, eax
je 0x51b905
lea eax, [esp + 0x34]
mov dword [esp + 0x40], 2
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x48], 0x5cc86c
push eax
push ebx
call sym.SystemInformer.exe_PhConcatStringRef3
mov ebx, eax
lea edx, [esp + 0x50]
mov ecx, ebx
call fcn.0051b300
test eax, eax
js 0x51b83b
test byte [esp + 0x70], 0x10
jne 0x51b8e3
movzx eax, word [ebx]
mov word [esp + 0x20], ax
add eax, 2
cmp dword [ebx], 0xfffe
mov word [esp + 0x22], ax
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], eax
ja 0x51b8e3
push 0
push 0
push 0x4021
push 2
push 3
push 0x80
lea eax, [esp + 0x38]
mov dword [esp + 0x68], 0x18
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push 0
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x74], 0
push eax
push 0x100001
lea eax, [esp + 0x64]
mov dword [esp + 0x84], 0x40
push eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
js 0x51b8db
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x51b8e3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
test eax, eax
je 0x51b905
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x51b905
lea ecx, [ecx]
call fcn.004fbfa0
mov eax, ebx
test esi, esi
jne 0x51b7c0
mov ecx, eax
test eax, eax
je 0x51b928
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x51b928
call fcn.004fbfa0
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x78]
call fcn.0051b300
test eax, eax
js 0x51b947
test byte [esp + 0x98], 0x10
jne 0x51b657
mov eax, 0xc0000225
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xcc]
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret