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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f20a9
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
lea eax, [esp + 0x7c]
mov esi, ecx
push eax
mov dword [esp + 0x28], esi
mov edi, edx
call fcn.00410730
xor ebx, ebx
mov dword [esp + 0x180], ebx
lea ecx, [esp + 0xc4]
push ecx
call fcn.004b2ab0
mov byte [esp + 0x180], 1
mov eax, 7
xor edx, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
mov byte [esp + 0x180], 2
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], cx
mov byte [esp + 0x180], 3
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], dx
mov byte [esp + 0x180], 4
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esi], ebx
call fcn.004b2e00
test al, al
jne 0x4b9e2b
mov ecx, dword [esp + 0xe8]
push ecx
push 0x635ba8
call fcn.004a7cf0
add esp, 8
mov byte [esp + 0x180], 3
mov esi, 8
cmp dword [esp + 0x78], esi
jb 0x4b9d94
mov edx, dword [esp + 0x64]
push edx
call fcn.004c4802
add esp, 4
mov edi, 7
xor eax, eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], ax
mov byte [esp + 0x180], 2
cmp dword [esp + 0x5c], esi
jb 0x4b9dc3
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004c4802
add esp, 4
xor edx, edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
mov byte [esp + 0x180], 1
cmp dword [esp + 0x40], esi
jb 0x4b9ded
mov eax, dword [esp + 0x2c]
push eax
call fcn.004c4802
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
mov byte [esp + 0x180], bl
lea ecx, [esp + 0xc4]
call fcn.004b2bc0
mov dword [esp + 0x180], 0xffffffff
lea edx, [esp + 0x7c]
push edx
call fcn.004107a0
xor al, al
jmp 0x4ba2ed
lea esi, [esp + 0x18]
call fcn.004bb4c0
test al, al
jne 0x4b9f1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x635c50
call fcn.004a7cf0
mov eax, dword [esp + 0x20]
add esp, 8
cmp eax, ebx
je 0x4b9e63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x180], 3
mov esi, 8
cmp dword [esp + 0x78], esi
jb 0x4b9e83
mov eax, dword [esp + 0x64]
push eax
call fcn.004c4802
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], cx
mov byte [esp + 0x180], 2
cmp dword [esp + 0x5c], esi
jb 0x4b9eb2
mov edx, dword [esp + 0x48]
push edx
call fcn.004c4802
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
mov byte [esp + 0x180], 1
cmp dword [esp + 0x40], esi
jb 0x4b9edc
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004c4802
add esp, 4
xor edx, edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
mov byte [esp + 0x180], bl
lea ecx, [esp + 0xc4]
call fcn.004b2bc0
mov dword [esp + 0x180], 0xffffffff
lea eax, [esp + 0x7c]
push eax
call fcn.004107a0
xor al, al
jmp 0x4ba2ed
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x4b9f34
lea esi, [esp + 0x1c]
call fcn.004ba320
test al, al
jne 0x4b9f38
mov dword [esp + 0x1c], ebx
jmp 0x4b9f38
mov dword [esp + 0x1c], eax
mov eax, edi
cmp edi, ebx
jne 0x4b9f43
mov eax, 0x622024
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x4b9f50
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4b9f50
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x2c]
call fcn.0040f730
cmp dword [esp + 0x3c], ebx
jne 0x4b9f7b
push 0xc
mov eax, str.explorer.exe
call fcn.0040f730
mov edx, dword [esp + 0x2c]
mov edi, 8
cmp dword [esp + 0x40], edi
jae 0x4b9f8e
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc8]
push eax
call fcn.004b3b00
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x4ba0c2
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x4b9f7b
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x4b9fcd
cmp ecx, dword [esp + 0x84]
jne 0x4b9f7b
push eax
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x4ba001
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x635d90
call fcn.004a7cf0
add esp, 0xc
jmp 0x4b9f7b
lea edx, [esp + 0x14]
push edx
push 0xf
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4ba03b
mov eax, dword [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x635e48
call fcn.004a7cf0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b9f7b
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x60]
push ecx
lea ebx, [esp + 0x48]
call fcn.004b9920
add esp, 4
test al, al
jne 0x4ba063
mov edx, dword [esp + 0x80]
push edx
push 0x635f10
jmp 0x4ba095
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x4ba072
lea eax, [esp + 0x48]
push str.SYSTEM
push eax
call fcn.005b99bb
add esp, 8
test eax, eax
jne 0x4ba1a3
mov eax, dword [esp + 0x80]
push eax
push 0x635fd0
call fcn.004a7cf0
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4ba0b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x4b9f7b
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], edi
jae 0x4ba0d0
lea eax, [esp + 0x2c]
push eax
push str.CRegularParser::GetLogonUserTokenForXP___:__s
call fcn.004a7cf0
mov eax, dword [esp + 0x20]
add esp, 8
cmp eax, ebx
je 0x4ba0f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x180], 3
cmp dword [esp + 0x78], edi
jb 0x4ba10c
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004c4802
add esp, 4
mov esi, 7
xor edx, edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], dx
mov byte [esp + 0x180], 2
cmp dword [esp + 0x5c], edi
jb 0x4ba13b
mov eax, dword [esp + 0x48]
push eax
call fcn.004c4802
add esp, 4
xor ecx, ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], cx
mov byte [esp + 0x180], 1
cmp dword [esp + 0x40], edi
jb 0x4ba165
mov edx, dword [esp + 0x2c]
push edx
call fcn.004c4802
add esp, 4
xor eax, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
mov byte [esp + 0x180], bl
lea ecx, [esp + 0xc4]
call fcn.004b2bc0
mov dword [esp + 0x180], 0xffffffff
lea ecx, [esp + 0x7c]
push ecx
call fcn.004107a0
xor al, al
jmp 0x4ba2ed
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push edi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x4ba212
mov eax, dword [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CRegularParser::GetLogonUserTokenForXP___:
call fcn.004a7cf0
mov eax, dword [esp + 0x20]
xor ebx, ebx
add esp, 0xc
mov dword [edi], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4ba1ee
push eax
call edi
mov dword [esp + 0x14], ebx
push esi
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4ba200
push eax
call edi
mov dword [esp + 0x18], ebx
mov byte [esp + 0x180], 3
mov edi, 8
jmp 0x4ba0f9
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x4ba229
push eax
call edi
mov dword [esp + 0x14], ebx
push esi
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4ba23b
push eax
call edi
mov dword [esp + 0x18], ebx
mov byte [esp + 0x180], 3
mov edi, 8
cmp dword [esp + 0x78], edi
jb 0x4ba25b
mov edx, dword [esp + 0x64]
push edx
call fcn.004c4802
add esp, 4
mov esi, 7
xor eax, eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], ax
mov byte [esp + 0x180], 2
cmp dword [esp + 0x5c], edi
jb 0x4ba28a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004c4802
add esp, 4
xor edx, edx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
mov byte [esp + 0x180], 1
cmp dword [esp + 0x40], edi
jb 0x4ba2b4
mov eax, dword [esp + 0x2c]
push eax
call fcn.004c4802
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
mov byte [esp + 0x180], bl
lea ecx, [esp + 0xc4]
call fcn.004b2bc0
mov dword [esp + 0x180], 0xffffffff
lea edx, [esp + 0x7c]
push edx
call fcn.004107a0
mov al, 1
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.005b7e8e
mov esp, ebp
pop ebp
ret