Function at 0x40def0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454159
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x46ebd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call fcn.0041b710
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40df3a
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], esi
mov edi, 1
mov dword [ebp - 0x1c], edi
call fcn.0041b710
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40df70
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
call fcn.0041b710
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40df9c
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 3
push 0x45fe20
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00403c20
mov edx, dword [0x473794]
mov edi, 8
cmp dword [edx + 0x14], edi
jb 0x40dfcf
mov edx, dword [edx]
cmp edx, esi
jne 0x40dfd7
xor eax, eax
jmp 0x40dfef
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dfe0
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
push 3
push 0x45fe28
mov ecx, ebx
call fcn.00403c20
mov ecx, dword [0x473794]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
push 3
push 0x45fe30
mov ecx, ebx
call fcn.00403c20
mov eax, dword [0x473794]
cmp dword [eax + 0x50], edi
jb 0x40e054
mov edx, dword [eax + 0x3c]
jmp 0x40e057
lea edx, [eax + 0x3c]
test edx, edx
jne 0x40e05f
xor eax, eax
jmp 0x40e073
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e064
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
push 3
push 0x45fe38
mov ecx, ebx
call fcn.00403c20
mov eax, dword [0x473794]
cmp dword [eax + 0x34], edi
jb 0x40e0a7
mov ecx, dword [eax + 0x20]
jmp 0x40e0aa
lea ecx, [eax + 0x20]
test ecx, ecx
jne 0x40e0b2
xor eax, eax
jmp 0x40e0c6
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e0b7
sub eax, esi
sar eax, 1
push eax
push ecx
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
lea ecx, [ebp - 0x10]
call fcn.0040cd90
push 3
push 0x45fe40
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
lea ecx, [ebp - 0x10]
call fcn.0040cf90
push 3
push 0x45fe48
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
push 0xb
push str.m7Windows
mov ecx, ebx
call fcn.00403c20
lea esi, [ebp - 0x10]
call fcn.0040d200
push 3
push 0x45fe68
mov ecx, ebx
call fcn.00403c20
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
push eax
push esi
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
push str.IsWow64Process
push str.kernel32.dll
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40e1da
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test al, al
je 0x40e1c8
cmp dword [ebp - 0x18], 0
je 0x40e1c8
push 6
push str.64_bit
jmp 0x40e1cf
push 6
push str.32_bit
lea ecx, [ebp - 0x10]
call fcn.00401c30
mov esi, dword [ebp - 0x10]
push 3
push 0x45fe70
mov ecx, ebx
call fcn.00403c20
mov eax, dword [esi - 0xc]
push eax
push esi
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
lea edi, [ebp - 0x10]
call fcn.0040d350
push 4
push str.m10
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
call fcn.0040d440
push 4
push str.m11
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
lea eax, [ebp - 0x14]
push eax
mov ebx, edi
call fcn.0040d530
mov ebx, dword [ebp + 8]
add esp, 4
push 4
push str.m12
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
push 4
push str.m24
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
push 0xb
push str.m13NI_CID
mov ecx, ebx
call fcn.00403c20
push 0xb
push str.m14NI_AID
mov ecx, ebx
call fcn.00403c20
push 0xc
push str.m15NI_ASID
mov ecx, ebx
call fcn.00403c20
push 0xb
push str.m16NI_LID
mov ecx, ebx
call fcn.00403c20
mov esi, dword [sym.imp.KERNEL32.dll_GetUserGeoID]
push 0xe
call esi
cmp eax, 0xffffffff
jne 0x40e317
push 0x10
call esi
push eax
lea ecx, [ebp - 0x10]
push str._lx
push ecx
call fcn.004041e0
add esp, 0xc
push 4
push str.m17
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
lea edi, [ebp - 0x10]
call fcn.0040d720
push 4
push str.m18
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
call fcn.0040d840
push 4
push str.m19
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
call fcn.0040d8c0
push 4
push str.m20
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
call fcn.0040d940
push 4
push str.m21
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
call fcn.0040d9c0
push 4
push str.m22
mov ecx, ebx
call fcn.00403c20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403c20
push 1
push 0x45d5b8
mov ecx, ebx
call fcn.00403c20
mov esi, edi
call fcn.0040da40
push 4
push str.m23
mov ecx, ebx
call fcn.00403c20
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
push eax
push esi
mov ecx, ebx
call fcn.00403c20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e48e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret