Function at 0x10049568
Capabilities:
Get geographical location
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], 0
jmp 0x10049592
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x34], 0xec2e0cf5
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x10049584
mov dword [ebp - 0xc], 0
jmp 0x100495af
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x20], 0xb07fb07d
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x100495a1
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
je 0x100495d5
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 8], 2
cmp dword [ebp - 8], 0
jl 0x1004970c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0xe8cc1958
mov eax, dword [ebp - 8]
cmp dword [ebp + eax*4 - 0x34], 0
je 0x100496ee
mov dword [ebp - 0x44], 0xcb4c23af
xor edx, edx
mov dword [ebp - 0x40], 0xcb4c23af
mov dword [ebp - 0x3c], 0xcb4c23af
mov dword [ebp - 0x38], 0xcb4c23af
mov dword [ebp - 0xc], 0xf5af8b51
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + eax*4 - 0x34]
mov eax, dword [ebp - 0x3c]
cmp eax, ecx
setne dl
mov dword [ebp - 0x34], edx
mov dword [ebp - 0xc], 2
cmp dword [ebp - 0xc], 0
jl 0x10049700
mov dword [ebp - 0x14], 0xac7eb236
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
mov esi, dword [ebp + eax*4 - 0x40]
cmp edx, 4
mov eax, dword [ebp - 8]
setg cl
mov dword [ebp + eax*4 - 0x34], esi
add ecx, dword [ebp - 0x10]
neg ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x40]
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x3a79cc09
setl cl
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
sub esi, eax
sub esi, 0x5ca2
neg esi
sbb esi, esi
inc esi
sub esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
neg esi
sbb esi, esi
xor ecx, ecx
inc esi
mov eax, dword [ebp + eax*4 - 0x40]
cmp esi, eax
mov eax, dword [ebp - 0x44]
setle cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0xc]
setl dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0xc]
setle cl
sub ecx, 0x39dff2bc
sub ecx, dword [ebp + eax*4 - 0x40]
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x3c], ecx
dec dword [ebp - 0xc]
jns 0x1004964a
jmp 0x10049700
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
je 0x10049700
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
dec dword [ebp - 8]
jns 0x100495e6
mov esi, dword [ebp - 0x18]
push 0x171b
push 0x14f9
push esi
push 0x6f2d
push 1
call fcn.10043524
mov dword [ebp - 8], 0xffff
xor edx, edx
mov dword [ebp - 0xc], edx
add esp, 0x14
mov dword [ebp - 0x18], 0x12535b5b
cmp dword [ebp - 8], edx
je 0x100497c9
mov dword [ebp - 8], edx
jmp 0x10049751
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x28], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x10049747
mov dword [ebp - 8], 0xfffffffa
jmp 0x100497be
mov dword [ebp - 0x14], 0x50e6da50
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], edx
jl 0x100497bb
mov dword [ebp - 0x10], 0xfffffff6
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], edx
jl 0x100497b6
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x28]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xc], edx
jmp 0x100497ab
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
je 0x100497a8
push edx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor edx, edx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xf
jge 0x10049795
dec dword [ebp - 0x10]
jns 0x10049786
dec dword [ebp - 0x14]
jns 0x10049773
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x38
jle 0x10049760
jmp 0x10049873
mov dword [ebp - 0x18], 0xfffffff9
mov dword [ebp - 0x14], 0x5879a273
mov dword [ebp - 8], edx
jmp 0x10049856
mov dword [ebp - 0x14], 0xefa025ec
mov dword [ebp - 0x10], 0x2506ed55
mov eax, dword [ebp - 0xc]
dec eax
je 0x10049821
mov eax, dword [ebp - 0x14]
add eax, 0x15b
push 0
pop eax
setns al
xor edx, edx
cmp eax, 0x10a1
mov eax, dword [ebp - 8]
setne dl
xor ecx, ecx
cmp edx, eax
setle cl
xor edx, edx
cmp ecx, dword [ebp - 0x14]
je 0x1004981e
cmp dword [ebp - 0x14], edx
jne 0x10049821
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
imul eax, dword [ebp - 0x10], 6
test eax, eax
je 0x1004983b
cmp dword [ebp - 8], edx
je 0x1004983b
cmp dword [ebp - 0x10], edx
je 0x1004983b
xor ecx, ecx
inc ecx
jmp 0x1004983d
mov ecx, edx
mov eax, dword [ebp - 0x18]
add eax, ecx
jne 0x10049847
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf
jle 0x100497dc
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
je 0x10049873
push 0x203f
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 8]
push esi
imul eax, eax, 0xd70f
mov dword [ebp - 0x18], eax
call fcn.100307a9
mov dword [ebp - 0x18], 0x8261f9c2
mov esi, eax
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
pop ecx
je 0x100498d5
push 0x2177
push 0x26f0
push 0x14a8
push 0x70a
push 0x1a18
push 0x1a13
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_RoundRect]
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
je 0x100498f1
push 0xcc0
push 0x1c3a
push 0
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret