Function at 0x417559
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x4dd4ad
call fcn.004d1ec0
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x80], ebx
mov dword [ebp - 0x2c], esi
je 0x41757f
xor eax, eax
inc eax
jmp 0x417b82
inc dword [esi + 0x58]
mov eax, dword [esi + 0x58]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call fcn.00416a78
push str.ProtocolVersion
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 0xa
call fcn.0048cec7
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00416977
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x4175ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x4f02bc
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0048cec7
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00416977
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x4175fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.body
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0048cec7
push str.ClientVersion
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], 0x48
call fcn.0048cec7
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00416977
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x417647
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.CompressFlag
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x28], ebx
call fcn.0048cec7
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004169cc
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x41767b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.CommandID
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x28], 0xb
call fcn.0048cec7
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004169cc
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x4176b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esi, 0x5c
push esi
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov esi, eax
push str.PeerID
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0048cec7
push esi
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0048c955
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x4176f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edi, dword [ebp + 8]
mov esi, str.Country
push esi
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0048cec7
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.0048cc7c
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004169cc
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x417751
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x417762
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, str.Province
push esi
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0048cec7
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.0048cc7c
mov dword [ebp + 8], eax
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00416977
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0xb
je 0x4177ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x4177bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, str.City
push esi
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0048cec7
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0048cc7c
mov dword [ebp + 8], eax
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00416977
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0xd
je 0x41780b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x41781c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, str.District
push esi
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0048cec7
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.0048cc7c
mov dword [ebp + 8], eax
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.00416977
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0xf
je 0x417868
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x417879
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x4f024c
push esi
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0048cec7
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.0048cc7c
mov dword [ebp + 8], eax
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.00416977
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0x11
je 0x4178c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x4178d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, str.Special_Flag
push esi
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0048cec7
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.0048cc7c
mov byte [ebp + 0xb], al
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.0048cec7
lea ecx, [ebp + 0xb]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.00416a23
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0x13
je 0x417922
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x417933
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, str.Dispatch_ID
push esi
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0048cec7
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.0048cc7c
mov dword [ebp + 8], eax
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.00416977
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0x15
pop edi
je 0x417980
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x417991
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.00416a78
push str.ProtocolVersion
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x17
mov dword [ebp + 8], 0xa
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.00416977
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0x17
je 0x4179d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x4f02bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0048cec7
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x19
call fcn.00416977
mov eax, dword [ebp + 8]
cmp eax, ebx
mov byte [ebp - 4], 0x17
je 0x417a06
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.body
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.0048cec7
push str.ClientVersion
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1a
mov dword [ebp + 8], 0x48
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1b
call fcn.00416977
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0x1a
je 0x417a53
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.CompressFlag
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ebx
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1c
call fcn.004169cc
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0x1a
je 0x417a87
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.CommandID
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], 0xc
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1d
call fcn.004169cc
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0x1a
je 0x417abf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.Result
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp + 0xb], bl
call fcn.0048cec7
lea ecx, [ebp + 0xb]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1e
call fcn.00416a23
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0x1a
je 0x417af3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.Version
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ebx
call fcn.0048cec7
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1f
call fcn.00416977
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 0x1a
je 0x417b27
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ecx + 0x2c]
push eax
call fcn.00416750
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], 0x17
je 0x417b4e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x417b5f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x417b6f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x417b80
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4