Function at 0x1005809b
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push esi
movzx eax, byte [ebp + 0x3c]
test eax, eax
je 0x100586ba
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x70], 0xef2
mov dword [ebp - 0x17c], 0x1000d3dc
cmp dword [ebp - 0x70], 0x128d
jle 0x10058182
and dword [ebp - 0x44], 0
jmp 0x10058117
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x61b8
jge 0x10058182
and dword [ebp - 0x4c], 0
jmp 0x1005812d
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x3ed4
jge 0x10058180
and dword [ebp - 0x18], 0
jmp 0x10058143
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x76f5
jge 0x1005817e
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
shl eax, cl
mov ecx, dword [ebp - 0x18]
sar eax, cl
cdq
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1c4], edx
push dword [ebp - 0x1c4]
push dword [ebp - 0x1c8]
mov ecx, 0x10092b78
call fcn.10022847
jmp 0x1005813c
jmp 0x10058126
jmp 0x10058110
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1fc], eax
cmp dword [ebp - 0x70], 0xb32
jge 0x100581a4
mov edx, dword [ebp - 0x17c]
mov ecx, 0x10092b78
call fcn.10025597
mov dword [ebp - 0x98], 0xb59
mov dword [ebp - 0x154], 0x1000d420
cmp dword [ebp - 0x98], 0xb63
jle 0x10058220
and dword [ebp - 0x54], 0
jmp 0x100581d1
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x3059
jge 0x10058220
and dword [ebp - 0x20], 0
jmp 0x100581e7
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1ca6
jge 0x1005821e
mov eax, dword [ebp - 0x54]
cdq
idiv dword [ebp - 0x20]
mov eax, edx
cdq
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1d0], edx
push dword [ebp - 0x1d0]
push dword [ebp - 0x1d4]
mov ecx, 0x10092b78
call fcn.10022847
jmp 0x100581e0
jmp 0x100581ca
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x98], 0x8eb
jge 0x10058245
mov edx, dword [ebp - 0x154]
mov ecx, 0x10092b78
call fcn.10025597
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x1bc], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x78], 0x1d37
mov dword [ebp - 0xb4], 0x1000d47c
cmp dword [ebp - 0x78], 0x205e
jle 0x1005831c
push 0
push 0
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
and dword [ebp - 0x5c], 0
jmp 0x10058295
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xf11
jge 0x1005831c
and dword [ebp - 0x28], 0
jmp 0x100582ab
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x555a
jge 0x10058317
and dword [ebp - 0x64], 0
jmp 0x100582c1
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x39a3
jge 0x10058315
and dword [ebp - 0x30], 0
jmp 0x100582d7
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x2148
jge 0x10058313
mov eax, dword [ebp - 0x5c]
imul eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x30]
cdq
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], edx
push dword [ebp - 0x1dc]
push dword [ebp - 0x1e0]
mov ecx, 0x10092b78
call fcn.10022847
jmp 0x100582d0
jmp 0x100582ba
jmp 0x100582a4
jmp 0x1005828e
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x1d8], eax
cmp dword [ebp - 0x78], 0x1cc3
jge 0x1005833e
mov edx, dword [ebp - 0xb4]
mov ecx, 0x10092b78
call fcn.10025597
mov eax, dword [ebp + 0x5c]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x1b4]
movzx eax, byte [eax]
test eax, eax
je 0x10058670
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x90], 0x3857
mov dword [ebp - 0xdc], 0x1000d4a0
cmp dword [ebp - 0x90], 0x3983
jle 0x1005844a
push 0
call dword [sym.imp.GDI32.dll_CreatePenIndirect]
and dword [ebp - 0x50], 0
jmp 0x100583e1
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x1249
jge 0x1005844a
and dword [ebp - 0x58], 0
jmp 0x100583f7
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x65b2
jge 0x10058448
and dword [ebp - 0x38], 0
jmp 0x1005840d
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x1b5a
jge 0x10058446
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x38]
shl eax, cl
and eax, dword [ebp - 0x50]
cdq
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x1e8], edx
push dword [ebp - 0x1e8]
push dword [ebp - 0x1ec]
mov ecx, 0x10092b78
call fcn.10022847
jmp 0x10058406
jmp 0x100583f0
jmp 0x100583da
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x90], 0x362f
jge 0x10058472
mov edx, dword [ebp - 0xdc]
mov ecx, 0x10092b78
call fcn.10025597
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx]
inc ecx
mov edx, dword [ebp - 0x68]
mov dword [edx], ecx
test eax, eax
je 0x10058536
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0x674f9af3
jg 0x10058536
mov dword [ebp - 0x1e4], 1
jmp 0x1005853d
and dword [ebp - 0x1e4], 0
mov eax, dword [ebp - 0x11c]
cmp dword [eax], 0
jne 0x10058556
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0
jne 0x10058556
and dword [ebp - 0x80], 0
jmp 0x1005855d
mov dword [ebp - 0x80], 1
mov eax, dword [ebp - 0x60]
mov esi, dword [eax]
push 2
mov ecx, dword [ebp - 0x84]
call fcn.10022bff
mov ecx, dword [ebp - 0x80]
add ecx, dword [eax]
mov eax, dword [ebp - 0x18c]
sub ecx, dword [eax]
cmp esi, ecx
jl 0x1005858c
mov dword [ebp - 0x124], 1
jmp 0x10058593
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0x208], eax
push 0
mov ecx, dword [ebp - 0x7c]
call fcn.10022bff
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0
je 0x100585c4
mov eax, dword [ebp - 0x6c]
cmp dword [eax], 0
je 0x100585c4
mov dword [ebp - 0x1cc], 1
jmp 0x100585cb
and dword [ebp - 0x1cc], 0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x194]
mov dword [eax], 0x9cc099a5
mov eax, dword [ebp - 0x134]
cmp dword [eax], 0x9cc099a5
jl 0x1005860a
mov dword [ebp - 0xa0], 1
jmp 0x10058611
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xa0]
je 0x1005862a
mov dword [ebp - 0x88], 1
jmp 0x10058631
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
cmp dword [ebp - 0x88], eax
jle 0x10058647
mov dword [ebp - 0x74], 1
jmp 0x1005864b
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x74]
sub esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x7c]
call fcn.10022bff
add esi, dword [eax]
push 1
mov ecx, dword [ebp - 0x84]
call fcn.10022bff
mov dword [eax], esi
jmp 0x100586b5
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14c]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
jmp 0x10058b41
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x60]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0xb8], eax
lea eax, [ebp + 0x64]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x1a4]
movzx eax, byte [eax]
test eax, eax
je 0x10058932
mov dword [ebp - 0x8c], 0x1696
mov dword [ebp - 0xb0], 0x1000d500
cmp dword [ebp - 0x8c], 0x1706
jle 0x100587d5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
and dword [ebp - 0x34], 0
jmp 0x10058769
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x583e
jge 0x100587d5
and dword [ebp - 0x48], 0
jmp 0x1005877f
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x2c97
jge 0x100587d3
and dword [ebp - 0x2c], 0
jmp 0x10058795
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x5802
jge 0x100587d1
mov eax, dword [ebp - 0x48]
cdq
idiv dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
mov ecx, edx
shl eax, cl
cdq
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 0x1f4], edx
push dword [ebp - 0x1f4]
push dword [ebp - 0x1f8]
mov ecx, 0x10092b78
call fcn.10022847
jmp 0x1005878e
jmp 0x10058778
jmp 0x10058762
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0x8c], 0x1637
jge 0x100587fd
mov edx, dword [ebp - 0xb0]
mov ecx, 0x10092b78
call fcn.10025597
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100588c4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jg 0x1005892d
mov dword [ebp - 0x94], 9
push 0
push dword [ebp - 0x130]
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x138]
push dword [ebp - 0x140]
push dword [ebp - 0x148]
push 0x1002
push dword [ebp - 0x150]
push dword [ebp - 0x158]
push 1
push 0x3f77
push dword [ebp - 4]
push dword [ebp - 0x160]
call fcn.1005d0f6
add esp, 0x34
cmp dword [ebp - 0x94], 0
je 0x1005892b
jmp 0x1005892d
jmp 0x100588b9
jmp 0x10058b41
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x190], eax
mov dword [ebp - 0xa4], 0x65a3
mov dword [ebp - 0x1a0], 0x1000d548
cmp dword [ebp - 0xa4], 0x68f6
jle 0x100589fd
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetCharABCWidthsW]
and dword [ebp - 0x10], 0
jmp 0x10058989
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x862
jge 0x100589f3
and dword [ebp - 0x3c], 0
jmp 0x1005899f
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x38ae
jge 0x100589f1
and dword [ebp - 0xc], 0
jmp 0x100589b5
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x34a6
jge 0x100589ef
mov eax, dword [ebp - 0x3c]
cdq
idiv dword [ebp - 0xc]
add edx, dword [ebp - 0x10]
mov eax, edx
cdq
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x200], edx
push dword [ebp - 0x200]
push dword [ebp - 0x204]
mov ecx, 0x10092b78
call fcn.10022847
jmp 0x100589ae
jmp 0x10058998
jmp 0x10058982
push 0
push 0
call dword [sym.imp.GDI32.dll_GetBrushOrgEx]
mov dword [ebp - 0x9c], 0x57f
mov dword [ebp - 0x188], 0x1000d5b4
cmp dword [ebp - 0x9c], 0x67a
jle 0x10058ac5
and dword [ebp - 0x14], 0
jmp 0x10058a2e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x5fb5
jge 0x10058ac5
and dword [ebp - 0x1c], 0
jmp 0x10058a48
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1a8c
jge 0x10058ac0
and dword [ebp - 0x24], 0
jmp 0x10058a5e
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xa5
jge 0x10058abe
mov eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x1c]
add edx, dword [ebp - 0x24]
mov eax, edx
cdq
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], edx
push dword [ebp - 0x1ac]
push dword [ebp - 0x1b0]
lea ecx, [ebp - 0x228]
call fcn.100118ee
pop ecx
pop ecx
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
call fcn.10022827
push eax
call fcn.10077843
pop ecx
lea ecx, [ebp - 0x228]
call fcn.1002281d
jmp 0x10058a57
jmp 0x10058a41
jmp 0x10058a27
mov eax, dword [ebp - 0x180]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x9c], 0x2e1
jge 0x10058ae6
push dword [ebp - 0x188]
call fcn.10077843
pop ecx
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10058b08
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 4
jge 0x10058b25
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x198]
call fcn.10022bff
or dword [eax], 0xffffffff
jmp 0x10058afd
cmp dword [ebp - 0xa4], 0x628d
jge 0x10058b41
mov edx, dword [ebp - 0x1a0]
mov ecx, 0x10092b78
call fcn.10025597
pop esi
mov esp, ebp
pop ebp
ret