Function at 0x479540
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8c35
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4e3018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0x1c]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], ebx
cmp dword [ecx - 0xc], 0
mov dword [ebp - 0x2c], eax
jne 0x479b8b
push 0x18
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.004869b5
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
call fcn.00404840
mov ecx, eax
test ecx, ecx
je 0x479bae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.country
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004041f0
test al, al
jne 0x4795f7
push 7
push str.country
lea ecx, [ebp - 0x14]
call fcn.004044f0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.0047a930
mov edx, dword [esi]
mov ebx, eax
or esi, 0xffffffff
mov edi, dword [ebx]
lea ecx, [edx - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x479659
cmp dword [edi + 0xc], 0
jl 0x47964e
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x47964e
call fcn.00416960
mov dword [ebp - 0x1c], eax
lea ecx, [edi + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x479644
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebx], eax
jmp 0x479659
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.004044f0
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x479677
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404840
mov ecx, eax
test ecx, ecx
je 0x479bb8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.province
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004041f0
test al, al
jne 0x4796b5
push 8
push str.province
lea ecx, [ebp - 0x14]
call fcn.004044f0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.0047a930
mov ebx, dword [ebp - 0x20]
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebx + 4]
mov edi, dword [ecx]
sub edi, 0x10
lea eax, [edx - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x479725
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x479719
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x479719
mov ecx, dword [ebp - 0x1c]
call fcn.00416960
mov dword [ebp - 0x1c], eax
mov eax, esi
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x47970c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x479722
push dword [edx - 0xc]
push edx
call fcn.004044f0
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x479743
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404840
mov ecx, eax
test ecx, ecx
je 0x479bc2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.city
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004041f0
test al, al
jne 0x479781
push 4
push str.city
lea ecx, [ebp - 0x14]
call fcn.004044f0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x28]
call fcn.0047a930
mov edx, dword [ebx + 8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x4797ee
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4797e2
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x4797e2
mov ecx, dword [ebp - 0x18]
call fcn.00416960
mov dword [ebp - 0x18], eax
mov eax, esi
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4797d5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4797eb
push dword [edx - 0xc]
push edx
call fcn.004044f0
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47980c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404840
mov ecx, eax
test ecx, ecx
je 0x479bcc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.district
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004041f0
test al, al
jne 0x47984a
push 8
push str.district
lea ecx, [ebp - 0x14]
call fcn.004044f0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x28]
call fcn.0047a930
mov edx, dword [ebx + 0xc]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x4798b7
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4798ab
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x4798ab
mov ecx, dword [ebp - 0x18]
call fcn.00416960
mov dword [ebp - 0x18], eax
mov eax, esi
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x47989e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4798b4
push dword [edx - 0xc]
push edx
call fcn.004044f0
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4798d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404840
mov ecx, eax
test ecx, ecx
je 0x479bd6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x4d04a4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004041f0
test al, al
jne 0x479913
push 3
push 0x4d04a4
lea ecx, [ebp - 0x14]
call fcn.004044f0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x28]
call fcn.0047a930
mov edx, dword [ebx + 0x10]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x479980
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x479974
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x479974
mov ecx, dword [ebp - 0x18]
call fcn.00416960
mov dword [ebp - 0x18], eax
mov eax, esi
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x479967
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x47997d
push dword [edx - 0xc]
push edx
call fcn.004044f0
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47999e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404840
mov ecx, eax
test ecx, ecx
je 0x479be0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.type
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.004041f0
test al, al
jne 0x4799dc
push 4
push str.type
lea ecx, [ebp - 0x14]
call fcn.004044f0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x28]
call fcn.0047a930
mov edx, dword [ebx + 0x14]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x479a49
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x479a3d
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x479a3d
mov ecx, dword [ebp - 0x18]
call fcn.00416960
mov dword [ebp - 0x18], eax
mov eax, esi
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x479a30
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x479a46
push dword [edx - 0xc]
push edx
call fcn.004044f0
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x479a67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404840
mov ecx, eax
test ecx, ecx
je 0x479bea
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.desc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.004041f0
test al, al
jne 0x479aa5
push 4
push str.desc
lea ecx, [ebp - 0x14]
call fcn.004044f0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x28]
call fcn.0047a930
mov edx, dword [ebx + 0x18]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x479b0f
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x479b06
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x479b06
mov ecx, dword [ebp - 0x18]
call fcn.00416960
mov dword [ebp - 0x18], eax
mov eax, esi
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x479af9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x479b0f
push dword [edx - 0xc]
push edx
call fcn.004044f0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x479b2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
and dword [ebp - 0x3c], 0xfffffe00
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.0047ac60
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x479b59
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.0047b510
lea ecx, [ebp - 0x44]
call fcn.0047c180
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
mov ecx, eax
call fcn.00468aa0
push 0x18
push dword [ebp - 0x28]
call fcn.004869a7
mov ecx, dword [esi]
add esp, 8
mov ebx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00436a70
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404610
push 0x80004005
call fcn.00404610
push 0x80004005
call fcn.00404610
push 0x80004005
call fcn.00404610
push 0x80004005
call fcn.00404610
push 0x80004005
call fcn.00404610
push 0x80004005
call fcn.00404610
int3