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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100631e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push esi
push edi
mov dword [esp + 0x14], 0x83111738
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], 2
push 3
call fcn.1002fd91
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x1004596b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov dword [eax + ecx*4], ebx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x1004595c
mov eax, dword [esp + 0x1c]
xor edi, edi
mov eax, dword [esp + 0x1c]
inc edi
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebx
jmp 0x100459bb
cmp dword [esp + 0x1c], ebx
jne 0x100459c2
mov byte [esp + 0xf], bl
cmp byte [esp + 0xf], bl
je 0x100459b7
push ebx
push ebx
call dword [sym.imp.USER32.dll_CopyRect]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x11
jge 0x1004599f
lea ecx, [esp + 0x44]
call fcn.1002fe13
mov byte [esp + 0x2b], bl
mov dword [esp + 0x18], 0x569f
cmp dword [esp + 0x18], 0x5a0b
jle 0x10045a78
mov esi, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x4c1e
mov edi, ebx
mov dword [esp + 0x1c], ebx
lea eax, [esi + edi]
mov edi, 0x3f72
mov dword [esp + 0x20], eax
mov esi, eax
mov eax, esi
lea ecx, [esp + 0x90]
cdq
push edx
push eax
call fcn.1000d8f0
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10045a26
mov eax, dword [eax]
push eax
call fcn.1004cdd6
pop ecx
push ebx
push 1
lea ecx, [esp + 0x98]
call fcn.1003011d
dec esi
dec edi
jne 0x10045a0b
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
inc edi
mov dword [esp + 0x1c], edi
cmp edi, 0x53d3
jl 0x100459fd
dec esi
dec dword [esp + 0x14]
mov dword [esp + 0x10], esi
jne 0x100459f7
mov esi, dword [esp + 0x24]
inc esi
mov dword [esp + 0x24], esi
cmp esi, 0xc15
jl 0x100459eb
xor edi, edi
inc edi
push dword [esp + 0x20]
movdqa xmm0, xmmword [0x1000c4b0]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x34], ebx
push eax
push ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], ebx
movdqu xmmword [esp + 0x60], xmm0
mov dword [esp + 0x44], ebx
call fcn.10031c45
cmp dword [esp + 0x18], 0x5303
jge 0x10045abf
push 0x1000c114
call fcn.1004cdd6
pop ecx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x7fa5
cmp dword [esp + 0x10], 0x830b
jle 0x10045b67
push 0x1b57
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, ebx
mov dword [esp + 0x24], ebx
mov edi, ebx
mov dword [esp + 0x18], ebx
mov eax, esi
mov dword [esp + 0x20], ebx
cdq
mov esi, ebx
idiv edi
mov edi, edx
mov eax, edi
lea ecx, [esp + 0x78]
cdq
idiv esi
mov eax, edx
cdq
push edx
push eax
call fcn.1000d8f0
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10045b23
mov eax, dword [eax]
push eax
call fcn.1004cdd6
pop ecx
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.1003011d
inc esi
cmp esi, 0x13db
jl 0x10045b06
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
inc edi
mov dword [esp + 0x18], edi
cmp edi, 0x2bdc
jl 0x10045af9
inc esi
mov dword [esp + 0x24], esi
cmp esi, 0x60b6
jl 0x10045af3
xor edi, edi
inc edi
mov dword [esp + 0x18], 0xab6ce1a8
cmp dword [esp + 0x10], 0x7cc1
jge 0x10045b84
push 0x1000c150
call fcn.1004cdd6
pop ecx
mov dword [esp + 0xcc], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], edi
mov dword [eax], ebx
mov byte [esp + 0xf], bl
cmp byte [esp + 0xf], 0
je 0x10045bc4
push 0x1a0f
push 0x286
push 0x2db
push 0xe05
push 0x18c
push 0xd25
call dword [sym.imp.GDI32.dll_PatBlt]
mov ecx, dword [esp + 0x2c]
dec dword [ecx]
cmp dword [ecx], 0xffffffea
jge 0x10045b95
mov eax, dword [ecx + 4]
mov dword [ecx + 0xc], eax
add eax, 7
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], ebx
je 0x10045c32
mov dword [esp + 0x18], 0xcfd1f2e9
mov byte [esp + 0xf], bl
cmp byte [esp + 0xf], 0
je 0x10045c00
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov dword [esp + 0x14], 3
cmp dword [esp + 0x14], ebx
jl 0x10045d34
dec dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
cmp dword [eax + ecx*4], ebx
jne 0x10045d34
dec dword [esp + 0x14]
jns 0x10045c12
jmp 0x10045d34
mov dword [esp + 0x24], 0xa5e0
mov byte [esp + 0xf], bl
cmp byte [esp + 0xf], 0
je 0x10045c4b
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esp + 0x14], 3
cmp dword [esp + 0x14], ebx
jl 0x10045d34
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x18], 0x59785734
lea ecx, [esp + 0x38]
push 2
call fcn.1002fd91
mov dword [esp + 0x10], ebx
jmp 0x10045c8d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x4b969b42
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x10045c7a
mov byte [esp + 0xf], bl
cmp byte [esp + 0xf], 0
je 0x10045cca
push 0x801
push ebx
push 0x2089
push 0xa07
push 0x2431
push ebx
push 0x1396
push 0x16a1
push 0x2148
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jg 0x10045ce0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebx
jne 0x10045d10
cmp dword [esp + 0x24], ebx
jne 0x10045d10
mov eax, dword [esp + 0x2c]
mov edx, ebx
cmp dword [eax], ebx
je 0x10045d12
mov edx, edi
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp edx, eax
setne cl
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x38]
call fcn.1002fe13
dec dword [esp + 0x14]
jns 0x10045c61
or dword [esp + 0xcc], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.1002fe13
mov dword [esp + 0x1c], 0x1847
cmp dword [esp + 0x1c], 0x1b24
jle 0x10045dd6
push ebx
push 0x1d9
call dword [sym.imp.USER32.dll_MapDialogRect]
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 0x2cb
mov eax, edi
lea ecx, [esp + 0xa8]
xor eax, esi
cdq
push edx
push eax
call fcn.1000d8f0
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10045d94
mov eax, dword [eax]
push eax
call fcn.1004cdd6
pop ecx
push ebx
push 1
lea ecx, [esp + 0xb0]
call fcn.1003011d
dec esi
dec dword [esp + 0x18]
jne 0x10045d77
mov esi, dword [esp + 0x24]
inc esi
mov dword [esp + 0x24], esi
cmp esi, 0x4cd9
jl 0x10045d6b
inc edi
cmp edi, 0x2434
jl 0x10045d65
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor edi, edi
inc edi
cmp byte [esp + 0x2b], 0
je 0x10045e2e
mov dword [esp + 0x20], edi
mov dword [esp + 0x20], 0xe53d8da8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x20], 0x3248c66f
mov dword [esp + 0x20], 0x8d3c891c
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x10045e17
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x6c], edi
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x10045e0b
dec dword [esp + 0x18]
push ebx
push 0x22b7
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [esp + 0x1c], 0x158b
jge 0x10045e43
push 0x1000c1c8
call fcn.1004cdd6
pop ecx
mov dword [esp + 0x10], 0xfffffff7
mov dword [esp + 0x10], ebx
jmp 0x10045e5d
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x60], ebx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x10045e51
mov dword [esp + 0x10], 2
cmp dword [esp + 0x10], ebx
jl 0x10045e82
mov eax, dword [esp + 0x10]
cmp dword [esp + eax*4 + 0x60], ebx
jne 0x10045e82
dec dword [esp + 0x10]
jns 0x10045e72
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret