Function at 0x413317
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x4db548
call fcn.004d0500
sub esp, 0x40
push ebx
xor ebx, ebx
cmp dword [ecx + 0x80], ebx
mov dword [ebp - 0x28], ecx
je 0x41333a
xor eax, eax
inc eax
jmp 0x4137e8
inc dword [ecx + 0x58]
mov eax, dword [ecx + 0x58]
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.00412d14
mov esi, str.ProtocolVersion
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], 0xa
call fcn.0048b0d6
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00412c13
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x413388
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x4edf0c
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.0048b0d6
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00412c13
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x4133b8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.body
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0048b0d6
mov edi, str.ClientVersion
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], 0x48
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00412c13
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x413406
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.CompressFlag
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x30], ebx
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00412c68
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x41343a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.CommandID
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x30], 0xb
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00412c68
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x413472
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
add eax, 0x5c
push eax
lea ecx, [ebp - 0x4c]
call dword [0x4ea4ec]
mov dword [ebp - 0x30], eax
push str.PeerID
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0048b0d6
push dword [ebp - 0x30]
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0048ab69
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x4134b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call dword [0x4ea4f8]
lea ecx, [ebp - 0x18]
call fcn.00412d14
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], 0xa
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00412c13
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x413506
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x4edf0c
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.0048b0d6
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00412c13
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x413537
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.0048b0d6
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x30], 0x48
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00412c13
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
pop edi
mov byte [ebp - 4], 0xc
pop esi
je 0x413582
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.CompressFlag
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], ebx
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00412c68
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x4135b6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.CommandID
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], 0xc
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.00412c68
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x4135ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.Result
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], bl
call fcn.0048b0d6
lea ecx, [ebp - 0xd]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.00412cbf
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x413622
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.Country
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], ebx
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.00412c68
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x413656
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.Province
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], ebx
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.00412c13
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x41368a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.City
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], ebx
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.00412c13
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x4136be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.District
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], ebx
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.00412c13
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x4136f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x4ede9c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], ebx
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.00412c13
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x413726
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.Special_Flag
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], bl
call fcn.0048b0d6
lea ecx, [ebp - 0xd]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.00412cbf
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x41375a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.Dispatch_ID
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], ebx
call fcn.0048b0d6
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x17
call fcn.00412c13
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x41378e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ecx + 8]
push eax
call fcn.004129ec
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x4137b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x4137c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x4137d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4137e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret