Function at 0x401610
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x40653c
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x8110
call fcn.00405f40
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], 1
call fcn.004040d4
cmp eax, 1
jg 0x40205c
call fcn.00403df2
test al, al
je 0x40205c
lea eax, [ebp - 0x811c]
push eax
call fcn.00403b08
test eax, eax
pop ecx
je 0x402057
mov ax, word [0x40918c]
lea edi, [ebp - 0x9a]
mov word [ebp - 0x9c], ax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x409188]
lea edi, [ebp - 0xc2]
mov word [ebp - 0xc4], ax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, str.conn
lea edi, [ebp - 0xb0]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0xab]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xac]
push str.ections
push eax
mov dword [ebp - 0x14], 0x14
call sub.MSVCRT.dll_strcpy
mov esi, str.xxxxx_d._s._s._s
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 5
lea eax, [ebp - 0xc4]
movsd dword es:[edi], dword [esi]
pop ecx
push eax
lea eax, [ebp - 0x9c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x14]
movsb byte es:[edi], byte [esi]
push eax
mov esi, str.xxxxx_d._s._s._s__s
push dword [ebp + 8]
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
call fcn.00403571
add esp, 0x1c
test al, al
je 0x40205c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x811c]
push str.country
push eax
call fcn.0040396a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x811c]
push 0x409144
push eax
call fcn.0040396a
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
mov edi, 0x409044
lea eax, [ebp - 0x2c8]
push edi
push eax
call esi
add esp, 0x38
cmp eax, ebx
je 0x4017b7
mov byte [eax], bl
inc eax
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x88]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x3b8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
jmp 0x4017dd
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x74]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x3b8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x811c]
push 0x409140
push eax
call fcn.0040396a
add esp, 0x18
test eax, eax
jne 0x401835
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x811c]
push 0x409144
push eax
call fcn.0040396a
add esp, 0x18
lea eax, [ebp - 0x250]
push edi
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x401874
mov byte [eax], bl
inc eax
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x88]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
jmp 0x40189a
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x74]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x811c]
push 0x40913c
push eax
call fcn.0040396a
add esp, 0x18
test eax, eax
jne 0x4018cd
mov byte [ebp - 0xf], bl
jmp 0x401932
lea eax, [ebp - 0x278]
push edi
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x40190c
mov byte [eax], bl
inc eax
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x88]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
jmp 0x401932
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x74]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x811c]
push 0x409138
push eax
call fcn.0040396a
add esp, 0x18
test eax, eax
jne 0x401965
mov byte [ebp - 0xd], bl
jmp 0x4019ca
lea eax, [ebp - 0x2a0]
push edi
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x4019a4
mov byte [eax], bl
inc eax
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x88]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
jmp 0x4019ca
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x74]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x811c]
push eax
call fcn.0040396a
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov edi, 0x409134
mov dword [ebp + 8], eax
push edi
call fcn.004036a2
mov esi, eax
add esp, 0x20
inc esi
cmp dword [ebp + 8], ebx
jle 0x401a2b
push esi
push edi
call fcn.00403759
cmp esi, dword [ebp + 8]
pop ecx
pop ecx
jg 0x402057
push 0x1c80
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x401a4c
mov ecx, eax
call fcn.004042a3
mov edi, eax
jmp 0x401a4e
xor edi, edi
mov ecx, edi
mov byte [ebp - 4], bl
mov dword [ebp + 8], edi
call fcn.004042dc
mov ecx, edi
xor esi, esi
call fcn.00404659
test eax, eax
jbe 0x401abe
lea eax, [ebp - 0x18]
push esi
push eax
mov ecx, edi
call fcn.004043f8
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.0040465d
cmp eax, ebx
je 0x401aa2
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 0xe], 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, edi
inc esi
call fcn.00404659
cmp esi, eax
jb 0x401a68
cmp byte [ebp - 0xe], bl
jne 0x401ae2
lea eax, [ebp - 0x18]
push ebx
push eax
mov ecx, edi
call fcn.004043f8
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, edi
call fcn.004047e1
push ebx
push 0xc8
call dword [sym.imp.KERNEL32.DLL_SleepEx]
push ecx
lea eax, [ebp - 0x2c8]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov esi, 0x409a24
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_2
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push esi
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x3b8]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.00404429
cmp eax, ebx
jne 0x401cf5
mov ecx, edi
call fcn.00404628
mov ecx, edi
call fcn.0040431b
cmp edi, ebx
je 0x401b82
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push ebx
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_SleepEx]
push 0x1c80
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 8
je 0x401baf
mov ecx, eax
call fcn.004042a3
mov edi, eax
jmp 0x401bb1
xor edi, edi
mov ecx, edi
mov byte [ebp - 4], bl
mov dword [ebp + 8], edi
call fcn.004042dc
push ecx
lea eax, [ebp - 0x250]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
call sub.MFC42.DLL_CString::CString_2
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push esi
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x340]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.00404429
cmp eax, ebx
jne 0x401cf5
cmp byte [ebp - 0xf], bl
mov ecx, edi
je 0x401dd0
call fcn.00404628
mov ecx, edi
call fcn.0040431b
cmp edi, ebx
je 0x401c4f
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push ebx
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_SleepEx]
push 0x1c80
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 0xd
je 0x401c7c
mov ecx, eax
call fcn.004042a3
mov edi, eax
jmp 0x401c7e
xor edi, edi
mov ecx, edi
mov byte [ebp - 4], bl
mov dword [ebp + 8], edi
call fcn.004042dc
push ecx
lea eax, [ebp - 0x278]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
call sub.MFC42.DLL_CString::CString_2
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push esi
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x37c]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.00404429
cmp eax, ebx
je 0x401d01
mov dword [ebp - 0x28], 1
jmp 0x401dd5
cmp byte [ebp - 0xd], bl
mov ecx, edi
je 0x401dd0
call fcn.00404628
mov ecx, edi
call fcn.0040431b
cmp edi, ebx
je 0x401d24
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push ebx
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_SleepEx]
push 0x1c80
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 0x12
je 0x401d51
mov ecx, eax
call fcn.004042a3
mov edi, eax
jmp 0x401d53
xor edi, edi
mov ecx, edi
mov byte [ebp - 4], bl
mov dword [ebp + 8], edi
call fcn.004042dc
push ecx
lea eax, [ebp - 0x2a0]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
call sub.MFC42.DLL_CString::CString_2
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push esi
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x304]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.00404429
cmp eax, ebx
jne 0x401cf5
mov ecx, edi
call fcn.00404628
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0040431b
cmp edi, ebx
je 0x401deb
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
cmp dword [ebp - 0x28], ebx
je 0x40205c
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x228]
push str.http:__
push eax
mov byte [ebp - 4], 0x17
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push 0x409128
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push 0x409124
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push 0x409120
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push 0x40911c
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push esi
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push esi
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push esi
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x228]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push esi
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push esi
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push str.les.
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push 0x409110
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push esi
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push 0x40910c
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push str._members.a
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push str.sp_cat
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x9c]
pop ecx
push esi
push dword [ebp - 0x14]
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x228]
push str._s_s_s_s_scust_d_s
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x228]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea eax, [ebp - 0x228]
lea ecx, [ebp + 8]
push 1
push eax
call fcn.00402077
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40205c
call fcn.004014fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret