Function at 0x40b69b
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465c37
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x487590]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push esi
push edi
mov eax, dword [0x487590]
xor eax, esp
push eax
lea eax, [esp + 0x870]
mov dword fs:[0], eax
mov esi, edx
mov dword [esp + 0x14], ecx
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040b887
mov dword [esp + 0x2c], 0x47ce34
mov eax, dword [eax]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], eax
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x87c], 1
call fcn.00403a8d
mov byte [esp + 0x878], 3
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x40b741
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ebx, ebx
test eax, eax
jne 0x40b78d
mov esi, str.hwang
lea edi, [esp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x76]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_failed_hwang_err:_d_r_n
jmp 0x40b834
xor eax, eax
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40b7dd
mov esi, str.hwang
lea edi, [esp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x76]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue_failed_hwang_err:_d_r_n
jmp 0x40b834
push ebx
push ebx
push 0x10
xor edi, edi
lea eax, [esp + 0x28]
inc edi
push eax
neg esi
sbb esi, esi
push ebx
push dword [esp + 0x24]
and esi, 2
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40b84e
mov esi, str.hwang
lea edi, [esp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x76]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges_failed_hwang_err:_d_r_n
lea eax, [esp + 0x78]
push eax
call fcn.00437dbf
add esp, 0xc
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40b850
mov ebx, edi
or dword [esp + 0x878], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.00403ace
mov eax, ebx
mov ecx, dword [esp + 0x870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.00437bed
mov esp, ebp
pop ebp
ret