Function at 0x4798b0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xb8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, dword [ebp + 0x38220]
mov si, word [ebp + 0x18ac]
mov bx, word [ebp + 0x18ae]
mov di, word [ebp + 0x18b0]
test ecx, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
je 0x4798fd
mov eax, dword [ebp + 0x72578]
push 0
push 0
push eax
movsx edx, bx
movsx eax, si
push 2
push edx
push eax
call fcn.0049e020
mov ecx, dword [ebp + 0x38244]
test ecx, ecx
je 0x479921
mov edx, dword [ebp + 0x72578]
push 0
push 0
push edx
movsx eax, bx
movsx edx, si
push 4
push eax
push edx
call fcn.0049e020
movsx eax, byte [ebp + 0x1936]
dec eax
je 0x47997a
dec eax
jne 0x47a249
movsx eax, bx
add eax, 0x87
lea ecx, [ebp + 0x7f1c]
mov dword [esp + 0x30], eax
call fcn.00402880
mov ecx, dword [esp + 0x30]
movsx eax, si
lea edx, [ecx + 0xf]
push edx
movsx edx, di
add edx, eax
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.user32.dll_SetRect]
push 0x191937
push 0x4c4e5c
lea ecx, [esp + 0x28]
jmp 0x47a234
movsx eax, word [ebp + 0x50ee]
sub eax, 0
je 0x47a1f1
dec eax
je 0x479d6b
sub eax, 6
jne 0x47a249
mov eax, dword [ebp + 0x50e8]
test eax, eax
movsx eax, bx
mov dword [esp + 0x34], eax
jne 0x479a05
lea ebx, [ebp + 0x7f1c]
add eax, 0x32
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00402880
mov ecx, dword [esp + 0x1c]
movsx esi, si
movsx edx, di
mov dword [esp + 0x30], esi
lea eax, [edx + esi]
lea edx, [ecx + 0xf]
push edx
mov dword [esp + 0x14], eax
push eax
push ecx
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.user32.dll_SetRect]
push 0x191937
lea ecx, [esp + 0x24]
push 0x4c4e3c
push ecx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
jmp 0x479a61
lea ebx, [ebp + 0x7f1c]
add eax, 0x32
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00402880
movsx eax, si
movsx edx, di
mov dword [esp + 0x30], eax
lea ecx, [edx + eax]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
lea esi, [edx + 0xf]
push esi
push ecx
push edx
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.user32.dll_SetRect]
push 0x191937
lea ecx, [esp + 0x24]
push 0x4c4e18
push ecx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov esi, dword [esp + 0x30]
xor edx, edx
cmp word [ebp + 0x50ec], 4
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov byte [esp + 0x4c], dl
jne 0x479aaf
mov edi, 0x4c24b0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ecx
push 0x4c4e0c
push edx
call dword [sym.imp.user32.dll_wsprintfA]
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, ebx
lea edi, [eax + 0x5f]
call fcn.00402880
mov edx, dword [esp + 0x10]
lea ecx, [edi + 0xf]
push ecx
push edx
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.user32.dll_SetRect]
lea ecx, [esp + 0x50]
push 0x191937
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov eax, dword [esp + 0x34]
mov ecx, ebx
lea edi, [eax + 0x6e]
call fcn.00402880
mov edx, dword [esp + 0x10]
lea ecx, [edi + 0xf]
push ecx
push edx
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.user32.dll_SetRect]
push 0x191937
lea ecx, [esp + 0x24]
push 0x4c2018
push ecx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x50]
mov edx, 0x4bd848
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x50fc]
mov edi, dword [edx]
lea eax, [ebp + 0x50fc]
cmp ecx, edi
jne 0x479bee
mov edi, 0x4c2004
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
lea esi, [ecx + 0x7d]
mov ecx, ebx
call fcn.00402880
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
lea edx, [esi + 0xf]
push edx
push eax
push esi
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.user32.dll_SetRect]
lea eax, [esp + 0x50]
push 0x191937
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov esi, dword [esp + 0x30]
jmp 0x479cf2
xor edx, edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edx
push ecx
mov dword [esp + 0x40], edx
push eax
mov dword [esp + 0x48], edx
mov ecx, ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov byte [esp + 0x54], dl
call fcn.0045dee0
lea edx, [esp + 0x38]
lea eax, [esp + 0x50]
push edx
push 0x4c1ff8
push eax
call dword [sym.imp.user32.dll_wsprintfA]
mov ecx, dword [esp + 0x40]
add esp, 0xc
lea edi, [ecx + 0x7d]
mov ecx, ebx
call fcn.00402880
mov eax, dword [esp + 0x10]
lea edx, [edi + 0xf]
push edx
push eax
push edi
lea ecx, [esp + 0x2c]
push esi
push ecx
call dword [sym.imp.user32.dll_SetRect]
lea edx, [esp + 0x50]
push 0x191937
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov dx, word [ebp + 0x50f6]
test dx, dx
je 0x479cf2
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
movsx ecx, word [ebp + 0x50fa]
movsx eax, word [ebp + 0x50f8]
push ecx
push eax
movsx ecx, dx
push ecx
lea edx, [esp + 0x5c]
push 0x4c4de8
push edx
call dword [sym.imp.user32.dll_wsprintfA]
mov eax, dword [esp + 0x48]
add esp, 0x14
mov ecx, ebx
lea edi, [eax + 0x8c]
call fcn.00402880
mov edx, dword [esp + 0x10]
lea ecx, [edi + 0xf]
push ecx
push edx
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.user32.dll_SetRect]
lea ecx, [esp + 0x50]
push 0x191937
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
movsx eax, word [ebp + 0x50f0]
push eax
lea ecx, [esp + 0x54]
push 0x4c4dd4
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ecx, ebx
lea edi, [edx + 0x9b]
call fcn.00402880
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0xf]
push eax
push ecx
push edi
lea edx, [esp + 0x2c]
push esi
push edx
call dword [sym.imp.user32.dll_SetRect]
lea eax, [esp + 0x50]
push 0x191937
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
jmp 0x47a249
mov eax, dword [ebp + 0x50e8]
test eax, eax
movsx eax, bx
jne 0x479e3f
lea ebx, [ebp + 0x7f1c]
add eax, 0x32
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00402880
mov ecx, dword [esp + 0x1c]
movsx eax, si
movsx edx, di
lea esi, [edx + eax]
lea edx, [ecx + 0xf]
push edx
push esi
push ecx
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x20], esi
push eax
call dword [sym.imp.user32.dll_SetRect]
push 0x191937
lea ecx, [esp + 0x24]
push 0x4c4dac
push ecx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
xor edx, edx
mov ecx, 0x1e
mov dx, word [ebp + 0x72ff4]
xor eax, eax
lea edi, [esp + 0x50]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
push 0x4c0a98
push eax
call dword [sym.imp.user32.dll_wsprintfA]
movsx eax, word [esp + 0x20]
add esp, 0xc
mov ecx, ebx
lea edi, [eax + 0x46]
call fcn.00402880
movsx eax, word [esp + 0x18]
lea ecx, [edi + 0xf]
lea edx, [esp + 0x20]
push ecx
push esi
push edi
push eax
push edx
call dword [sym.imp.user32.dll_SetRect]
lea eax, [esp + 0x50]
push 0x191937
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
jmp 0x479e97
lea ebx, [ebp + 0x7f1c]
add eax, 0x32
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00402880
movsx eax, si
movsx edx, di
lea ecx, [edx + eax]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
lea esi, [edx + 0xf]
push esi
push ecx
push edx
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.user32.dll_SetRect]
push 0x191937
lea ecx, [esp + 0x24]
push 0x4c4d7c
push ecx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov esi, dword [esp + 0x10]
xor edx, edx
cmp word [ebp + 0x50ec], 4
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov byte [esp + 0x4c], dl
jne 0x479ee5
mov edi, 0x4c24b0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ecx
push 0x4c4e0c
push edx
call dword [sym.imp.user32.dll_wsprintfA]
movsx eax, word [esp + 0x20]
add esp, 0xc
mov ecx, ebx
lea edi, [eax + 0x5f]
call fcn.00402880
lea eax, [edi + 0xf]
lea ecx, [esp + 0x20]
push eax
push esi
movsx eax, word [esp + 0x20]
push edi
push eax
push ecx
call dword [sym.imp.user32.dll_SetRect]
lea edx, [esp + 0x50]
push 0x191937
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
xor ecx, ecx
mov ax, word [ebp + 0x50f2]
mov dword [esp + 0x38], ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], ecx
push edx
mov dword [esp + 0x44], ecx
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov byte [esp + 0x54], cl
mov ecx, ebp
call fcn.004608c0
movsx edx, word [ebp + 0x50f4]
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x50]
push ecx
push edx
push 0x4c1fa4
push eax
call dword [sym.imp.user32.dll_wsprintfA]
movsx eax, word [esp + 0x24]
add esp, 0x10
mov ecx, ebx
lea edi, [eax + 0x6e]
call fcn.00402880
movsx eax, word [esp + 0x18]
lea ecx, [edi + 0xf]
lea edx, [esp + 0x20]
push ecx
push esi
push edi
push eax
push edx
call dword [sym.imp.user32.dll_SetRect]
lea eax, [esp + 0x50]
push 0x191937
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x50]
mov edx, 0x4bd848
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x50fc]
mov edi, dword [edx]
lea eax, [ebp + 0x50fc]
cmp ecx, edi
jne 0x47a085
mov edi, 0x4c2004
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
movsx eax, word [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
lea esi, [eax + 0x7d]
call fcn.00402880
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0xf]
movsx eax, word [esp + 0x18]
push ecx
push edx
push esi
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.user32.dll_SetRect]
lea ecx, [esp + 0x50]
push 0x191937
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov esi, dword [esp + 0x10]
jmp 0x47a18d
xor ecx, ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ecx
push edx
mov dword [esp + 0x40], ecx
push eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov byte [esp + 0x54], cl
mov ecx, ebp
call fcn.0045dee0
lea eax, [esp + 0x38]
lea ecx, [esp + 0x50]
push eax
push 0x4c1ff8
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
movsx eax, word [esp + 0x20]
add esp, 0xc
mov ecx, ebx
lea edi, [eax + 0x7d]
call fcn.00402880
movsx eax, word [esp + 0x18]
lea edx, [edi + 0xf]
push edx
push esi
push edi
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.user32.dll_SetRect]
lea ecx, [esp + 0x50]
push 0x191937
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
mov dx, word [ebp + 0x50f6]
test dx, dx
je 0x47a18d
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
movsx eax, word [ebp + 0x50fa]
movsx ecx, word [ebp + 0x50f8]
movsx edx, dx
push eax
push ecx
push edx
lea eax, [esp + 0x5c]
push 0x4c4de8
push eax
call dword [sym.imp.user32.dll_wsprintfA]
movsx eax, word [esp + 0x28]
add esp, 0x14
mov ecx, ebx
lea edi, [eax + 0x8c]
call fcn.00402880
movsx eax, word [esp + 0x18]
lea ecx, [edi + 0xf]
lea edx, [esp + 0x20]
push ecx
push esi
push edi
push eax
push edx
call dword [sym.imp.user32.dll_SetRect]
lea eax, [esp + 0x50]
push 0x191937
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebx
call fcn.004028e0
mov ecx, ebx
call fcn.004028c0
movsx edx, word [ebp + 0x50f0]
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x50]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
push 0x4c4dd4
push eax
call dword [sym.imp.user32.dll_wsprintfA]
movsx eax, word [esp + 0x20]
add esp, 0xc
mov ecx, ebx
lea edi, [eax + 0x9b]
call fcn.00402880
movsx eax, word [esp + 0x18]
lea ecx, [edi + 0xf]
lea edx, [esp + 0x20]
push ecx
push esi
push edi
push eax
push edx
call dword [sym.imp.user32.dll_SetRect]
lea eax, [esp + 0x50]
push 0x191937
push eax
lea ecx, [esp + 0x28]
jmp 0x479d4f
movsx eax, bx
add eax, 0x87
lea ecx, [ebp + 0x7f1c]
mov dword [esp + 0x1c], eax
call fcn.00402880
mov ecx, dword [esp + 0x1c]
movsx eax, si
lea edx, [ecx + 0xf]
push edx
movsx edx, di
add edx, eax
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.user32.dll_SetRect]
push 0x191937
push 0x4c4d60
lea ecx, [esp + 0x28]
lea edi, [ebp + 0x7f1c]
push ecx
mov ecx, edi
call fcn.004028e0
mov ecx, edi
call fcn.004028c0
mov edx, dword [esp + 0xcc]
movsx ecx, si
lea eax, [ecx + 0x9a]
cmp edx, eax
jl 0x47a2b0
add ecx, 0xe4
cmp edx, ecx
jg 0x47a2b0
mov esi, dword [esp + 0xd0]
movsx ecx, bx
lea edx, [ecx + 0x124]
cmp esi, edx
jle 0x47a2b0
add ecx, 0x138
cmp esi, ecx
jge 0x47a2b0
mov ecx, dword [ebp + 0x38248]
test ecx, ecx
je 0x47a2d7
mov esi, dword [ebp + 0x72578]
push 0
push 0
push esi
push 1
push edx
push eax
call fcn.0049e020
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 8
mov ecx, dword [ebp + 0x38248]
test ecx, ecx
je 0x47a2d7
mov edx, dword [ebp + 0x72578]
push 0
push 0
push edx
movsx edx, bx
add edx, 0x124
push 0
push edx
push eax
call fcn.0049e020
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 8