Function at 0x40a520
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4906ff
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x20]
and eax, 0xfffffe07
mov dword [ebp - 0x1c], 0
or eax, 7
push 8
mov dword [ebp - 0x20], eax
call fcn.00439955
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00418500
mov dword [esi], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x28]
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.00417100
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00417040
push ecx
push str.update_ratio
mov ecx, edi
call fcn.00417700
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebx + 0x24]
and ecx, 0xffffff02
or ecx, 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00417100
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00417040
push ecx
push str.package_type
mov ecx, edi
call fcn.00417700
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebx + 0x2c]
and ecx, 0xffffff01
or ecx, 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.00417100
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00417040
push ecx
push str.update_type
mov ecx, edi
call fcn.00417700
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebx + 0x28]
and ecx, 0xffffff01
or ecx, 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00417100
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00417040
push ecx
push str.update_brief
mov ecx, edi
call fcn.00417700
mov edx, dword [ebx + 0x20]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004313c0
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00417100
lea ecx, [ebp - 0x28]
call fcn.00417040
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a6f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push str.new_version
mov ecx, edi
call fcn.00417700
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 8]
mov esi, eax
mov edx, dword [edx + 0x10]
call fcn.004313c0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00417100
lea ecx, [ebp - 0x28]
call fcn.00417040
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a757
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push str.package_url
mov ecx, edi
call fcn.00417700
mov esi, eax
lea ecx, [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
call fcn.004313c0
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.00417100
lea ecx, [ebp - 0x28]
call fcn.00417040
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a7ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push str.package_bt_url
mov ecx, edi
call fcn.00417700
mov esi, eax
lea ecx, [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x18]
call fcn.004313c0
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00417100
lea ecx, [ebp - 0x28]
call fcn.00417040
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a81d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push str.package_md5
mov ecx, edi
call fcn.00417700
mov esi, eax
lea ecx, [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x1c]
call fcn.004313c0
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.00417100
lea ecx, [ebp - 0x28]
call fcn.00417040
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a880
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push str.root_path_in_pack
mov ecx, edi
call fcn.00417700
mov esi, eax
lea ecx, [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x30]
call fcn.004313c0
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.00417100
lea ecx, [ebp - 0x28]
call fcn.00417040
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a8e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push str.package_shell_param
mov ecx, edi
call fcn.00417700
mov esi, eax
lea ecx, [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x34]
call fcn.004313c0
mov dword [ebp - 4], 0x11
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, esi
mov byte [ebp - 4], 0x12
call fcn.00417100
lea ecx, [ebp - 0x28]
call fcn.00417040
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a946
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push str.file_list
mov ecx, edi
call fcn.00417700
mov esi, dword [ebp - 0x10]
mov edx, eax
lea ecx, [esi + 4]
call fcn.0040b900
push ecx
push str.qd_include
mov ecx, edi
call fcn.00417700
lea ecx, [esi + 0x40]
mov edx, eax
call fcn.0040ba20
push ecx
push str.qd_exclude
mov ecx, edi
call fcn.00417700
lea ecx, [esi + 0x48]
mov edx, eax
call fcn.0040ba20
push ecx
push str.city_include
mov ecx, edi
call fcn.00417700
lea ecx, [esi + 0x50]
mov edx, eax
call fcn.0040ba20
push ecx
push str.city_exclude
mov ecx, edi
call fcn.00417700
lea ecx, [esi + 0x58]
mov edx, eax
call fcn.0040ba20
push ecx
push str.inst_days_range
mov ecx, edi
call fcn.00417700
lea ecx, [esi + 0x60]
mov edx, eax
call fcn.0040bbb0
push ecx
push str.version_range
mov ecx, edi
call fcn.00417700
lea ecx, [esi + 0x38]
mov edx, eax
call fcn.0040bd30
push ecx
push 0x4a955c
mov ecx, edi
call fcn.00417700
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi + 0x68]
and ecx, 0xffffff02
or ecx, 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0x13
push ecx
mov ecx, eax
call fcn.00417100
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00417040
push ecx
push str.avoid_ss
mov ecx, edi
call fcn.00417700
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi + 0x6c]
and ecx, 0xffffff02
or ecx, 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0x14
push ecx
mov ecx, eax
call fcn.00417100
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00417040
push ecx
push str.shell_exe
mov ecx, edi
call fcn.00417700
mov esi, eax
lea ecx, [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x70]
call fcn.004313c0
mov dword [ebp - 4], 0x15
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, esi
mov byte [ebp - 4], 0x16
call fcn.00417100
lea ecx, [ebp - 0x28]
call fcn.00417040
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aae1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push str.shell_cmd
mov ecx, edi
call fcn.00417700
mov esi, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x74]
call fcn.004313c0
mov dword [ebp - 4], 0x17
lea ecx, [ebp - 0x38]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, esi
mov byte [ebp - 4], 0x18
call fcn.00417100
lea ecx, [ebp - 0x38]
call fcn.00417040
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40ab42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8