Function at 0x413950
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b3f5
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x43b034]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x15c], eax
xor ecx, ecx
mov ebx, 7
xor edi, edi
push 0x42
mov eax, str.http:__int.dpool.sina.com.cn_iplookup_iplookup.php_formatJSONip
lea esi, [ebp - 0x84]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], cx
call fcn.00404120
mov dword [ebp - 4], edi
xor edx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
xor eax, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
lea ecx, [ebp - 0x4c]
push ecx
mov byte [ebp - 4], 2
call fcn.00414120
test eax, eax
je 0x4140a6
cmp dword [ebp - 0x3c], edi
je 0x4140a6
push edi
lea edx, [ebp - 0x4c]
push edx
or eax, 0xffffffff
call fcn.0040b320
mov esi, dword [ebp - 0x15c]
push 3
mov eax, 0x436128
mov dword [ebp - 0x158], edi
call fcn.00404120
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x160], edi
mov edi, 8
cmp dword [ebp - 0x70], edi
jae 0x413a29
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x158]
push ecx
push eax
lea eax, [ebp - 0x160]
call fcn.00414300
mov esi, dword [ebp - 0x158]
test eax, eax
je 0x414049
test esi, esi
je 0x414056
cmp dword [ebp - 0x160], 0
jbe 0x414049
lea edx, [ebp - 0xbc]
push esi
push edx
call fcn.00413690
push esi
mov byte [ebp - 4], 3
call fcn.00416f7c
add esp, 0xc
lea eax, [ebp - 0x11c]
xor edi, edi
push eax
mov dword [ebp - 0x158], edi
call fcn.00414a40
mov byte [ebp - 4], 4
cmp dword [ebp - 0xa8], 0x10
mov eax, dword [ebp - 0xbc]
jae 0x413aa6
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp - 0x11c]
push edx
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
call fcn.00414de0
cmp dword [ebp - 0x10c], 3
jne 0x413ff1
lea eax, [ebp - 0x158]
push eax
push str.http:__www.weather.com.cn_data_list3_city.xml_level1
lea eax, [ebp - 0x160]
mov dword [ebp - 0x160], edi
call fcn.00414300
mov esi, dword [ebp - 0x158]
test eax, eax
je 0x41403a
cmp esi, edi
je 0x413ff1
cmp dword [ebp - 0x160], edi
jbe 0x41403a
mov ebx, esi
call fcn.00413360
lea ecx, [ebp - 0xa0]
call fcn.004038e0
push esi
mov byte [ebp - 4], 5
call fcn.00416f7c
add esp, 4
lea ecx, [ebp - 0x11c]
push ecx
mov esi, str.province
mov dword [ebp - 0x158], 0
call fcn.00414c90
mov edi, eax
test dword [edi + 0x10], 0x400000
mov esi, edi
jne 0x413b5a
mov esi, dword [edi]
test esi, esi
jne 0x413b62
xor eax, eax
jmp 0x413b8f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 1]
cmp ebx, 0x3fffffff
jle 0x413b78
xor eax, eax
jmp 0x413b8f
lea eax, [ebx + ebx]
call fcn.0041ebe0
mov ecx, esp
mov eax, esi
push 3
mov edx, ebx
mov esi, ecx
call fcn.00401910
lea ecx, [ebp - 0x68]
call fcn.004038e0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x58]
test ecx, ecx
jne 0x413c05
mov edx, dword [ebp - 0x15c]
push edx
mov eax, str.010101
call fcn.0040b0b0
lea esi, [ebp - 0x68]
call fcn.00403920
lea esi, [ebp - 0xa0]
call fcn.00403920
lea ebx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.00414af0
lea esi, [ebp - 0xbc]
call fcn.004128a0
lea esi, [ebp - 0x4c]
call fcn.00403920
lea esi, [ebp - 0x30]
call fcn.00403920
lea esi, [ebp - 0x84]
call fcn.00403920
mov eax, 1
jmp 0x4140fb
mov eax, dword [ebp - 0x68]
mov ebx, 8
cmp dword [ebp - 0x54], ebx
jae 0x413c15
lea eax, [ebp - 0x68]
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00403ff0
cmp eax, 0xffffffff
je 0x413fde
push 2
lea ecx, [eax - 3]
lea esi, [ebp - 0xd8]
lea edx, [ebp - 0xa0]
call fcn.0040b2f0
mov ecx, esi
mov esi, dword [ebp - 0x15c]
push 0
push ecx
or eax, 0xffffffff
mov byte [ebp - 4], 7
call fcn.0040b320
lea edx, [ebp - 0x30]
push edx
mov eax, str.http:__www.weather.com.cn_data_list3_city
call fcn.0040b080
push 0
lea eax, [ebp - 0xd8]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x30]
call fcn.0040b320
mov ecx, esi
push ecx
mov eax, str..xml_level2
call fcn.0040b0b0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x160], 0
cmp dword [ebp - 0x1c], ebx
jae 0x413c9c
mov eax, esi
lea edx, [ebp - 0x158]
push edx
push eax
lea eax, [ebp - 0x160]
call fcn.00414300
mov ebx, dword [ebp - 0x158]
test eax, eax
je 0x41402b
test ebx, ebx
je 0x413fd3
cmp dword [ebp - 0x160], 0
jbe 0x41402b
call fcn.00413360
lea ecx, [ebp - 0xa0]
push ecx
call fcn.0040b080
push ebx
call fcn.00416f7c
add esp, 4
lea edx, [ebp - 0x11c]
push edx
mov esi, str.city
mov dword [ebp - 0x158], 0
call fcn.00414c90
mov ecx, eax
mov eax, edi
call fcn.00414b50
test dword [edi + 0x10], 0x400000
mov esi, edi
jne 0x413d1d
mov esi, dword [edi]
test esi, esi
jne 0x413d25
xor eax, eax
jmp 0x413d52
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 1]
cmp ebx, 0x3fffffff
jle 0x413d3b
xor eax, eax
jmp 0x413d52
lea eax, [ebx + ebx]
call fcn.0041ebe0
mov ecx, esp
mov eax, esi
push 3
mov edx, ebx
mov esi, ecx
call fcn.00401910
lea ecx, [ebp - 0x68]
push ecx
call fcn.0040b080
mov ecx, dword [ebp - 0x58]
test ecx, ecx
jne 0x413dd0
mov edx, dword [ebp - 0x15c]
push edx
mov eax, str.0101
call fcn.0040b0b0
lea esi, [ebp - 0xd8]
call fcn.00403920
lea esi, [ebp - 0x68]
call fcn.00403920
lea esi, [ebp - 0xa0]
call fcn.00403920
lea ebx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.00414af0
lea esi, [ebp - 0xbc]
call fcn.004128a0
lea esi, [ebp - 0x4c]
call fcn.00403920
lea esi, [ebp - 0x30]
call fcn.00403920
lea esi, [ebp - 0x84]
call fcn.00403920
mov eax, 1
jmp 0x4140fb
mov eax, dword [ebp - 0x68]
mov ebx, 8
cmp dword [ebp - 0x54], ebx
jae 0x413de0
lea eax, [ebp - 0x68]
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00403ff0
cmp eax, 0xffffffff
je 0x413fd3
push 2
lea ecx, [eax - 3]
lea esi, [ebp - 0x138]
lea edx, [ebp - 0xa0]
call fcn.0040b2f0
mov ecx, esi
mov esi, dword [ebp - 0x15c]
push 0
push ecx
or eax, 0xffffffff
mov byte [ebp - 4], bl
call fcn.0040b320
lea edx, [ebp - 0x30]
push edx
mov eax, str.http:__www.weather.com.cn_data_list3_city
call fcn.0040b080
push 0
lea eax, [ebp - 0xd8]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x30]
call fcn.0040b320
push 0
lea ecx, [ebp - 0x138]
push ecx
or eax, 0xffffffff
call fcn.0040b320
mov edx, esi
push edx
mov eax, str.xml_level3
call fcn.0040b0b0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x160], 0
cmp dword [ebp - 0x1c], ebx
jae 0x413e77
mov eax, esi
lea ecx, [ebp - 0x158]
push ecx
push eax
lea eax, [ebp - 0x160]
call fcn.00414300
mov ebx, dword [ebp - 0x158]
test eax, eax
je 0x413fbb
test ebx, ebx
je 0x413fc8
cmp dword [ebp - 0x160], 0
jbe 0x413fbb
call fcn.00413360
lea edx, [ebp - 0xa0]
push edx
call fcn.0040b080
push ebx
call fcn.00416f7c
add esp, 4
lea eax, [ebp - 0x11c]
push eax
mov esi, str.district
call fcn.00414c90
mov ecx, eax
mov eax, edi
call fcn.00414b50
test dword [edi + 0x10], 0x400000
mov esi, edi
jne 0x413eee
mov esi, dword [edi]
test esi, esi
jne 0x413ef6
xor eax, eax
jmp 0x413f23
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 1]
cmp ebx, 0x3fffffff
jle 0x413f0c
xor eax, eax
jmp 0x413f23
lea eax, [ebx + ebx]
call fcn.0041ebe0
mov ecx, esp
mov eax, esi
push 3
mov edx, ebx
mov esi, ecx
call fcn.00401910
lea ecx, [ebp - 0x68]
push ecx
call fcn.0040b080
mov ecx, dword [ebp - 0x58]
test ecx, ecx
jne 0x413f54
mov edx, dword [ebp - 0x15c]
push edx
mov eax, 0x436260
call fcn.0040b0b0
lea esi, [ebp - 0x138]
call fcn.00403920
jmp 0x413d73
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0x413f60
lea eax, [ebp - 0x68]
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00403ff0
cmp eax, 0xffffffff
je 0x413f44
push 2
lea ecx, [eax - 3]
lea esi, [ebp - 0x154]
lea edx, [ebp - 0xa0]
call fcn.0040b2f0
mov ecx, esi
mov esi, dword [ebp - 0x15c]
push 0
push ecx
or eax, 0xffffffff
mov byte [ebp - 4], 9
call fcn.0040b320
lea esi, [ebp - 0x154]
call fcn.00403920
lea esi, [ebp - 0x138]
call fcn.00403920
jmp 0x413d73
test ebx, ebx
je 0x413fc8
push ebx
call fcn.00416f7c
add esp, 4
lea esi, [ebp - 0x138]
call fcn.00403920
lea esi, [ebp - 0xd8]
call fcn.00403920
lea esi, [ebp - 0x68]
call fcn.00403920
lea esi, [ebp - 0xa0]
call fcn.00403920
lea ebx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.00414af0
lea esi, [ebp - 0xbc]
call fcn.004128a0
lea esi, [ebp - 0x4c]
call fcn.00403920
lea esi, [ebp - 0x30]
call fcn.00403920
lea esi, [ebp - 0x84]
call fcn.00403920
jmp 0x4140f9
test ebx, ebx
je 0x413fd3
push ebx
call fcn.00416f7c
add esp, 4
jmp 0x413fd3
cmp esi, edi
je 0x413ff1
push esi
call fcn.00416f7c
add esp, 4
jmp 0x413ff1
test esi, esi
je 0x414056
push esi
call fcn.00416f7c
add esp, 4
cmp dword [ebp - 0x38], edi
jb 0x414067
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00416863
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
cmp dword [ebp - 0x1c], edi
jb 0x414088
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00416863
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], dx
cmp dword [ebp - 0x70], edi
jb 0x4140f9
mov eax, dword [ebp - 0x84]
push eax
jmp 0x4140f1
mov esi, 8
cmp dword [ebp - 0x38], esi
jb 0x4140bc
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00416863
add esp, 4
xor edx, edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], dx
cmp dword [ebp - 0x1c], esi
jb 0x4140d9
mov eax, dword [ebp - 0x30]
push eax
call fcn.00416863
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x70], esi
jb 0x4140f9
mov edx, dword [ebp - 0x84]
push edx
call fcn.00416863
add esp, 4
xor eax, eax
lea esp, [ebp - 0x174]
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.004167b2
mov esp, ebp
pop ebp
ret 4