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

Disassembly:
sub esp, 0x598
mov dl, byte [0x481910]
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29d]
mov byte [esp + 0x29c], dl
mov byte [esp + 0x198], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x199]
xor edx, edx
rep stosd dword es:[edi], eax
xor ecx, ecx
xor esi, esi
stosw word es:[edi], ax
mov dword [esp + 0x4c], ecx
xor ebp, ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], edx
stosb byte es:[edi], al
mov dword [esp + 0x54], ecx
xor eax, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], eax
mov ecx, 8
lea edi, [esp + 0x178]
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], 2
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x5ac]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
lea ebx, [eax + 0x579c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], esi
mov eax, dword [ebx]
mov dword [esp + 0x2c], esi
cmp eax, esi
mov dword [esp + 0x44], esi
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], 0x47a928
mov dword [esp + 0x64], 0x104
mov dword [esp + 0x30], esi
mov dword [esp + 0x60], edx
je 0x440459
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], esi
lea ecx, [esp + 0x1b]
push ecx
push esi
push 1
push 7
call dword [0x486420]
mov edi, eax
cmp edi, esi
jge 0x4404a5
push edi
call dword [0x486428]
mov ebp, eax
cmp ebp, 0x13d
jne 0x440482
mov ebp, edi
mov esi, dword [esp + 0x5b8]
push 0x47b7f0
lea edi, [esi + 8]
mov dword [esi + 4], ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esi + 4]
push edx
push edi
jmp 0x440cbe
lea eax, [esp + 0x3c]
push 0x47b7e8
push eax
call dword [0x486424]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call dword [0x486438]
mov edi, eax
cmp edi, esi
jge 0x440506
push edi
call dword [0x486428]
mov ebp, eax
cmp ebp, 0x13d
jne 0x4404e3
mov ebp, edi
mov esi, dword [esp + 0x5b8]
push 0x47b7a0
lea edi, [esi + 8]
mov dword [esi + 4], ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esi + 4]
push ecx
push edi
jmp 0x440cbe
lea edx, [esp + 0x4c]
push 0x47b7e8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x54]
push eax
call dword [0x486414]
lea ecx, [esp + 0x6c]
push 0x47b794
push ecx
call dword [0x486424]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call dword [0x48642c]
mov edi, eax
cmp edi, esi
jge 0x440576
push edi
call dword [0x486428]
mov ebp, eax
cmp ebp, 0x13d
jne 0x44055f
mov ebp, edi
mov esi, dword [esp + 0x5b8]
push 0x47b744
mov dword [esi + 4], ebp
lea ebx, [esi + 8]
jmp 0x440cb2
mov eax, dword [0x482b7c]
cmp eax, esi
mov eax, 3
je 0x440588
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x178]
push ecx
lea ecx, [esp + 0x14]
mov edi, dword [esp + 0x5b8]
push edx
push ecx
lea edx, [esp + 0x68]
lea ecx, [esp + 0x44]
push edx
push ecx
lea edx, [esp + 0x30]
lea ecx, [esp + 0x60]
push edx
mov edx, dword [esp + 0x5c8]
push ecx
mov ecx, dword [esp + 0x48]
push esi
push edi
push edx
push ecx
push eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x6c]
push edx
push eax
call dword [0x486430]
cmp eax, esi
mov dword [esp + 0x14], eax
jge 0x4406c4
mov cl, byte [0x481910]
xor eax, eax
mov byte [esp + 0x74], cl
mov ecx, 0x40
lea edi, [esp + 0x75]
mov esi, dword [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [0x486428]
mov ebp, eax
cmp ebp, 0x13d
jne 0x440612
mov ebp, esi
mov ebx, dword [esp + 0x5b8]
lea edx, [esp + 0x74]
push ebp
push edx
mov dword [ebx + 4], 0
call fcn.0042ab40
add esp, 8
lea esi, [ebx + 8]
push 0x47b720
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x74]
push eax
push esi
call edi
push 0x46f06c
push esi
call edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4406a8
push eax
call dword [0x486428]
mov ebp, eax
cmp ebp, 0x13d
jne 0x440670
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x74]
push 0x481910
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46b8f8
push 0x46b8e4
lea edx, [esp + 0x7c]
push ebp
push edx
call fcn.0042ace0
add esp, 0x10
lea eax, [esp + 0x74]
push eax
push esi
call edi
push 0x46f06c
push esi
call edi
mov ecx, dword [ebx + 4]
push ecx
push esi
call fcn.00446cb0
mov edx, dword [ebx + 4]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x440cc6
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x74], esi
je 0x440c9b
cmp dword [eax + 0x70], esi
je 0x440c9b
cmp dword [esp + 0x10], esi
je 0x4408c8
call fcn.004457a0
test eax, eax
je 0x440893
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x38]
push 4
push ecx
push 0x12
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x440893
mov eax, dword [esp + 0x34]
dec eax
je 0x440880
dec eax
je 0x440871
dec eax
jne 0x440893
lea eax, [esp + 0x29c]
push 0x47a8e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x28]
lea eax, [esp + 0x178]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x5c4]
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push esi
push edi
push eax
mov eax, dword [esp + 0x48]
push ecx
lea edx, [esp + 0x68]
push 3
push edx
push eax
mov dword [esp + 0x48], esi
call dword [0x486430]
cmp eax, esi
mov dword [esp + 0x14], eax
jge 0x440893
mov cl, byte [0x481910]
xor eax, eax
mov byte [esp + 0x74], cl
mov ecx, 0x40
lea edi, [esp + 0x75]
mov esi, dword [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [0x486428]
mov ebp, eax
cmp ebp, 0x13d
jne 0x4407d1
mov ebp, esi
mov ebx, dword [esp + 0x5b8]
lea edx, [esp + 0x74]
push ebp
push edx
mov dword [ebx + 4], 0
call fcn.0042ab40
add esp, 8
lea esi, [ebx + 8]
push 0x47b6f8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x74]
push eax
push esi
call edi
push 0x46f06c
push esi
call edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x440867
push eax
call dword [0x486428]
mov ebp, eax
cmp ebp, 0x13d
jne 0x44082f
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x74]
push 0x481910
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46b8f8
push 0x46b8e4
lea edx, [esp + 0x7c]
push ebp
push edx
call fcn.0042ace0
add esp, 0x10
lea eax, [esp + 0x74]
push eax
push esi
call edi
push 0x46f06c
push esi
call edi
mov ecx, dword [ebx + 4]
push ecx
push esi
jmp 0x440cbe
lea edx, [esp + 0x29c]
push 0x47a8cc
push edx
jmp 0x44088d
lea eax, [esp + 0x29c]
push 0x47a8b8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.0042f3e0
add esp, 8
test eax, eax
jne 0x4408b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x47b6d0
call fcn.00446e00
add esp, 8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], esi
mov eax, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp eax, esi
je 0x440932
call fcn.004457a0
test eax, eax
je 0x440932
mov edx, dword [ebx]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x38]
push 4
push ecx
push 0x12
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x440932
mov eax, dword [esp + 0x34]
dec eax
je 0x440923
dec eax
je 0x440914
dec eax
jne 0x440932
lea eax, [esp + 0x29c]
push 0x47a888
push eax
jmp 0x440930
lea ecx, [esp + 0x29c]
push 0x47a878
push ecx
jmp 0x440930
lea edx, [esp + 0x29c]
push 0x47a864
push edx
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0x74]
push ecx
push edx
push 1
call dword [0x486440]
cmp eax, esi
mov dword [esp + 0x44], eax
jne 0x440956
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
push eax
call dword [0x48640c]
test eax, eax
jne 0x4409ab
mov esi, dword [esp + 0x5b8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esi + 8]
push 0x47b688
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esi + 4]
push ecx
push edi
call fcn.00446cb0
mov eax, dword [ebx]
add esp, 8
test eax, eax
je 0x440cc6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
jmp 0x440cc6
lea edx, [esp + 0x64]
lea eax, [esp + 0x198]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x198]
push 0x104
mov ebx, dword [esp + 0x5b0]
push ecx
lea edx, [ebx + 0x2320]
push edx
call fcn.0042f1a0
lea edi, [ebx + 0x2a3c]
push 0x104
lea eax, [esp + 0x1a8]
push edi
push eax
push esi
call fcn.0043edb0
add esp, 0x1c
test eax, eax
jne 0x440a3c
mov edi, dword [esp + 0x5b8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x198]
lea ebx, [edi + 8]
push ecx
push 0x47b644
push ebx
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [edi + 4]
push edx
push ebx
call fcn.00446cb0
mov ebx, dword [esp + 0x5c0]
add esp, 0x14
jmp 0x440a4b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x440a4b
mov dword [esp + 0x24], edi
cmp dword [0x481bec], esi
je 0x440a66
mov eax, dword [esp + 0x24]
push eax
push ebx
call fcn.0043ee20
add esp, 8
mov dword [0x481bd8], eax
cmp dword [0x481c68], esi
je 0x440b1b
mov cl, byte [0x481910]
xor eax, eax
mov byte [esp + 0x74], cl
mov ecx, 0x40
lea edi, [esp + 0x75]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
cmp edi, esi
je 0x440ae6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x440ae6
push 0x104
lea edx, [esp + 0x78]
push edi
push edx
call fcn.0042f1a0
push 0x104
lea eax, [esp + 0x84]
push 0x4695f4
push eax
call fcn.0042f1f0
lea ecx, [esp + 0x1b0]
push 0x104
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.0042f1f0
add esp, 0x24
jmp 0x440b00
lea eax, [esp + 0x198]
push 0x104
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.0042f1a0
add esp, 0xc
mov eax, dword [esp + 0x5ac]
lea edx, [esp + 0x74]
push esi
push edx
push eax
call fcn.0043f9c0
add esp, 0xc
mov dword [0x481bdc], eax
mov edi, dword [esp + 0x5ac]
mov dword [0x481bd0], 0
xor esi, esi
mov ecx, dword [esi*4 + 0x47a670]
mov edx, dword [esi*4 + 0x47a654]
push ecx
push edx
push edi
call fcn.0043ea50
add esp, 0xc
test eax, eax
jne 0x440bf8
inc esi
cmp esi, 7
jb 0x440b2e
call fcn.0043e810
mov dword [esp + 0x30], eax
call dword [0x486410]
test eax, eax
jne 0x440b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x47a7d0
call fcn.00446cb0
add esp, 8
mov eax, dword [0x481bdc]
test eax, eax
jne 0x440cc6
mov eax, dword [0x481c68]
test eax, eax
je 0x440cc6
mov esi, dword [esp + 0x24]
test esi, esi
je 0x440c35
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x440c35
push 0x104
lea ecx, [esp + 0x78]
push esi
push ecx
call fcn.0042f1a0
push 0x104
lea edx, [esp + 0x84]
push 0x4695f4
push edx
call fcn.0042f1f0
lea eax, [esp + 0x1b0]
push 0x104
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.0042f1f0
add esp, 0x24
jmp 0x440c4f
test esi, esi
jne 0x440c06
mov dword [0x481bd0], 1
mov dword [esp + 0x30], 1
call fcn.004457a0
test eax, eax
je 0x440b5e
lea eax, [esp + 0x29c]
add edi, 0x2938
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x440b5e
lea edx, [esp + 0x198]
push 0x104
lea eax, [esp + 0x78]
push edx
push eax
call fcn.0042f1a0
add esp, 0xc
mov cl, byte [0x481910]
xor eax, eax
mov byte [esp + 0x3a0], cl
mov ecx, 0x81
lea edi, [esp + 0x3a1]
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x3a4]
push 0x47a714
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x3ac]
push 5
push ecx
call fcn.00446cb0
add esp, 0x14
jmp 0x440cc6
mov esi, dword [esp + 0x5b8]
mov ebp, 0x8010002c
push 0x47b608
mov dword [esi + 4], ebp
lea ebx, [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esi + 4]
push edx
push ebx
call fcn.00446cb0
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x440cd5
push eax
call dword [0x486434]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x440ce4
push eax
call dword [0x48643c]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x440cf3
push eax
call dword [0x486444]
mov eax, dword [esp + 0x30]
test eax, eax
mov eax, 5
je 0x440d02
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x598
ret 0x10