Function at 0x45a240
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f78dc
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x53e754]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2cc], edi
mov dword [ebp - 0x2d0], edi
xor eax, eax
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 1
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x2c4], 1
mov byte [ebp - 4], 2
call fcn.004585d0
mov esi, eax
lea eax, [ebp - 0x260]
cmp eax, esi
je 0x45a315
mov ecx, eax
call fcn.00419480
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x260], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x250], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x278]
call fcn.00419480
mov dword [ebp - 4], 1
jmp 0x45a464
cmp dword [ebp - 0x250], 0
jne 0x45a7b4
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 6
call fcn.00458f70
mov esi, eax
lea eax, [ebp - 0x260]
cmp eax, esi
je 0x45a4bd
mov ecx, eax
call fcn.00419480
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x260], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x250], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x278]
call fcn.00419480
mov dword [ebp - 4], 1
jmp 0x45a60c
cmp dword [ebp - 0x250], 0
jne 0x45a7b4
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xa
call fcn.00459b70
mov esi, eax
lea eax, [ebp - 0x260]
cmp eax, esi
je 0x45a665
mov ecx, eax
call fcn.00419480
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x260], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x250], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x278]
call fcn.00419480
mov dword [ebp - 4], 1
jmp 0x45a7b4
push 0xf
push str.DsnAvailability
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00418ea0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x248]
push 6
push str.Common
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.00418ea0
xor eax, eax
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x250], eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x248]
setne al
push eax
call fcn.00445990
mov byte [ebp - 4], 0xe
add esp, 4
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x45a874
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45a86a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ac8c
push edx
push ecx
call fcn.004a68a5
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x45a8b2
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45a8a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ac91
push edx
push ecx
call fcn.004a68a5
add esp, 8
cmp dword [ebp - 0x250], 0
jne 0x45a8d7
push 0x24
push str.00000000_0000_0000_0000_000000000000
lea ecx, [ebp - 0x260]
call fcn.004225a0
mov ecx, str.Default_DSN_of_00000000_0000_0000_0000_000000000000_being_used_for_this_machines_DSN._n
call fcn.00413a20
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2cc], 0x101
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x45aa20
mov ecx, str.Acquring_windows_username_failed._n
call fcn.0041c7c0
push 0x20
push str.DsnWindowsUsernameRetrieveFailed
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0xf
mov byte [ebp - 0x2a8], 0
call fcn.00418ea0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x290]
push 6
push str.Common
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
call fcn.00418ea0
push 1
lea edx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x290]
call fcn.00445990
mov byte [ebp - 4], 0x10
add esp, 4
mov edx, dword [ebp - 0x27c]
cmp edx, 0x10
jb 0x45a9bd
mov ecx, dword [ebp - 0x290]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45a9b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ac96
push edx
push ecx
call fcn.004a68a5
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x294]
cmp edx, 0x10
jb 0x45a9fb
mov ecx, dword [ebp - 0x2a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45a9f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ac9b
push edx
push ecx
call fcn.004a68a5
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
push eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0x51b71c
jmp 0x45aa5d
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45aa46
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004225a0
mov dword [ebp - 0x2c4], 3
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x230]
push dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
push eax
call fcn.00422330
mov dword [ebp - 0x238], 0
xor ecx, ecx
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x2c4], 7
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x238], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x2c0]
cmovae edx, dword [ebp - 0x248]
call fcn.00439be0
mov dword [ebp - 0x2c4], 0xf
lea edx, [ebp - 0x2c0]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x278]
call fcn.00459d10
mov esi, eax
cmp edi, esi
je 0x45ab54
mov ecx, edi
call fcn.0041acf0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x264]
cmp edx, 0x10
jb 0x45ab8e
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45ab84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45aca0
push edx
push ecx
call fcn.004a68a5
add esp, 8
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
cmp edx, 0x10
jb 0x45abe3
mov ecx, dword [ebp - 0x2c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45abd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45aca5
push edx
push ecx
call fcn.004a68a5
add esp, 8
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
call fcn.00419480
lea ecx, [ebp - 0x230]
call fcn.00419480
mov edx, dword [edi + 0x14]
mov ecx, edi
cmp edx, 0x10
jb 0x45ac20
mov ecx, dword [edi]
add ecx, dword [edi + 0x10]
mov esi, edi
cmp edx, 0x10
jb 0x45ac2c
mov esi, dword [edi]
mov eax, ecx
xor edx, edx
sub eax, esi
cmp esi, ecx
cmova eax, edx
mov dword [ebp - 0x2cc], eax
test eax, eax
je 0x45ac63
xor edi, edi
movsx eax, byte [esi]
push eax
call fcn.004d5cd5
inc edi
mov byte [esi], al
add esp, 4
lea esi, [esi + 1]
cmp edi, dword [ebp - 0x2cc]
jne 0x45ac43
mov edi, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x260]
call fcn.00419480
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a6894
mov esp, ebp
pop ebp
ret
call fcn.004c6faf
call fcn.004c6faf
call fcn.004c6faf
call fcn.004c6faf
call fcn.004c6faf
call fcn.004c6faf
int3