Function at 0x4683e0
Capabilities:
Get session user name
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4935d6
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
lea eax, [esp + 0x50]
mov ebx, ecx
push eax
mov dword [esp + 0x14], ebx
call fcn.00489e90
add esp, 4
xor edi, edi
mov dword [esp + 0x288], edi
push 0x206
lea edx, [esp + 0x72]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x78], cx
call fcn.00473d50
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x46853d
mov eax, dword [esp + 0x54]
mov esi, 8
cmp dword [esp + 0x68], esi
jae 0x468489
lea eax, [esp + 0x54]
lea edx, [esp + 0x6c]
push edx
push eax
call fcn.004894b0
mov eax, dword [esp + 0x5c]
add esp, 8
cmp dword [esp + 0x68], esi
jae 0x4684a5
lea eax, [esp + 0x54]
push str.SYSTEM
push eax
call fcn.004894b0
lea eax, [esp + 0x3c]
push eax
call fcn.0048a180
add esp, 0xc
mov byte [esp + 0x288], 1
push 5
push 0x4b7038
lea eax, [esp + 0x3c]
call fcn.00403a30
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x4684e3
lea eax, [esp + 0x38]
lea ecx, [esp + 0x6c]
push ecx
push eax
call fcn.004894b0
mov eax, dword [esp + 0x40]
add esp, 8
cmp dword [esp + 0x4c], esi
jae 0x4684ff
lea eax, [esp + 0x38]
push str.SYSTEM
push eax
call fcn.004894b0
add esp, 8
mov byte [esp + 0x288], 0
cmp dword [esp + 0x4c], esi
jb 0x468528
mov edx, dword [esp + 0x38]
push edx
call fcn.00471099
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
mov word [esp + 0x38], ax
jmp 0x468565
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetUserName_failed__d_
push 0x45
push str..ThreadInitEx.cpp
push 1
call fcn.0048ccc0
push eax
call fcn.0048c3e0
add esp, 0x18
mov esi, 8
call fcn.00411d30
cmp eax, edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
je 0x46858c
push str.StartDTLServiceEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46858c
push 0
call eax
test al, al
jne 0x46859f
call fcn.00403860
mov eax, dword [eax]
push 0
push 0
push 0x465
push eax
call edi
push 0x4682f0
push 0x493e0
push 0x7d0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
mov dword [ebx + 0x18], eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4686b6
mov ebx, dword [sym.imp.pcidrv.dll_PCI_IsInstallCalendar]
jmp 0x4685e0
mov eax, dword [esp + 0x1c]
sub eax, 0x464
je 0x46862c
sub eax, 1
je 0x46860b
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x46869d
call fcn.00411d30
test eax, eax
je 0x46869d
push str.StartDTLService
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46869d
call eax
jmp 0x46869d
call fcn.00403860
mov esi, eax
call dword [sym.imp.pcidrv.dll_PCI_GetAdvertType]
test eax, eax
jl 0x468643
mov dword [esi + 0x1d4], eax
call fcn.00403860
mov esi, dword [eax + 0x1d4]
call fcn.00403860
mov eax, dword [eax]
push 0
push esi
push 0x7e9
push eax
call edi
call ebx
mov edx, dword [esp + 0x10]
test eax, eax
setg cl
mov byte [edx + 0x1c], cl
push 1
lea ecx, [esp + 0x38]
call fcn.0046cca0
add esp, 4
lea ecx, [esp + 0x34]
call fcn.0048cfe0
call fcn.00403860
mov eax, dword [eax]
push 0
push 0
push 0x466
push eax
call edi
mov esi, 8
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4685e0
mov dword [esp + 0x288], 0xffffffff
cmp dword [esp + 0x68], esi
jb 0x4686d4
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00471099
add esp, 4
xor edx, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], dx
xor eax, eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret