Function at 0x10016b92
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x394
mov eax, dword [0x10048200]
xor eax, esp
mov dword [esp + 0x390], eax
cmp dword [0x10049364], 0
mov eax, dword [esp + 0x39c]
mov edx, dword [esp + 0x398]
mov ecx, dword [esp + 0x3a0]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3a4]
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], 0xffff
mov dword [esp + 0x2c], 0xffff
mov dword [esp + 0x28], 0xffff
mov dword [esp + 0xc], 0
je 0x1001693d
mov eax, 0xfffffbd7
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.1003d130
add esp, 0x394
ret 0x14
mov dword [0x1006b724], edx
mov eax, dword [edx + 0x2c]
mov dword [0x1006b2b0], eax
cmp dword [edx + 0x28], 0
je 0x1001696d
mov eax, 0xfffffbac
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.1003d130
add esp, 0x394
ret 0x14
test ecx, ecx
jne 0x1001698d
mov eax, 0xfffffbd8
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.1003d130
add esp, 0x394
ret 0x14
push ebx
push ebp
xor edx, edx
mov dword [0x1004bb68], 0
xor ebp, ebp
mov dword [esp + 8], edx
mov eax, 1
mov dword [esp + 0x24], ebp
push esi
push edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], eax
cmp byte [ecx], dl
je 0x100175f3
lea esp, [esp]
mov bl, byte [ecx]
xor esi, esi
mov edi, ecx
cmp bl, 0x3b
je 0x100169e2
jmp 0x100169d0
inc edi
test bl, bl
je 0x100169e3
cmp bl, 0x3d
mov bl, byte [edi]
cmove esi, edi
cmp bl, 0x3b
jne 0x100169d0
inc edi
test eax, eax
je 0x100169f2
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x10016aa9
test esi, esi
je 0x100175ec
mov eax, dword [esp + 0x3b8]
and eax, 4
mov byte [esp + 0x1a0], 0
push eax
push 0
mov dword [esp + 0x5c], eax
mov eax, esi
push 0
push 0
sub eax, ecx
push 0xa
dec eax
push eax
push ecx
lea eax, [esp + 0x1bc]
push eax
call fcn.1002bc70
test eax, eax
js 0x100175f8
xor eax, eax
mov ebp, 0x100010d4
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
push dword [esp + 0x54]
lea eax, [esp + 0x2a4]
mov byte [esp + 0x2a4], 0
push 0
push 0
push 0
push 0xa
push dword [ebp - 4]
push ebp
push eax
call fcn.1002bc70
test eax, eax
js 0x100175f8
lea eax, [esp + 0x2a0]
push eax
lea eax, [esp + 0x1a4]
push eax
call fcn.1003a4bb
test eax, eax
je 0x10016b5c
mov eax, dword [esp + 0x48]
add ebp, 0x14
inc dword [esp + 0x34]
add eax, 0x14
mov dword [esp + 0x48], eax
cmp eax, 0x64
jb 0x10016a44
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
test bl, bl
je 0x10016ac4
cmp byte [edi], 0
mov ecx, edi
jne 0x100169c0
test edx, edx
je 0x100175f3
mov ecx, dword [esp + 0x30]
test ebp, ebp
mov eax, 1
cmove ecx, eax
mov dword [esp + 0x30], ecx
test esi, esi
jne 0x10016af8
movzx eax, word [esp + 0x3c]
push eax
call fcn.1002a230
mov ecx, dword [esp + 0x30]
movzx eax, ax
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x38]
push eax
movzx eax, word [esp + 0x40]
push eax
movzx eax, cx
push eax
call fcn.1002b690
mov ebx, dword [esp + 0x3b8]
mov edi, ebx
mov dword [esp + 0x34], eax
and edi, 2
je 0x10016b37
cmp eax, 4
je 0x10016b2e
cmp eax, 5
je 0x10016b2e
cmp eax, 6
jne 0x10016b37
mov eax, 1
mov dword [esp + 0x34], eax
mov esi, ebx
and esi, 4
je 0x10016b47
cmp eax, 6
ja 0x100175f3
cmp eax, 0xff
jne 0x10016be6
mov eax, 0xfffffbd8
jmp 0x100175f8
cmp byte [esi], 0x20
jne 0x10016b67
inc esi
cmp byte [esi], 0x20
je 0x10016b61
cmp esi, edi
je 0x100175ec
mov eax, edi
sub eax, esi
dec eax
push eax
push esi
call fcn.10017630
movzx ecx, ax
mov eax, dword [esp + 0x34]
cmp eax, 3
ja case.default.0x10016b8b
jmp dword [eax*4 + 0x10017614]
mov eax, ecx
mov ebp, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
jmp 0x10016aad
mov ebp, dword [esp + 0x2c]
mov eax, ecx
mov edx, 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
jmp 0x10016ab1
mov edx, dword [esp + 0x10]
mov eax, ecx
mov ebp, dword [esp + 0x2c]
mov esi, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], esi
jmp 0x10016ab5
lea eax, [esp + 0x54]
mov dword [esp + 0x40], 0
push eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x24], 0
push eax
push dword [esp + 0x54]
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call fcn.10009430
test eax, eax
js 0x100175f8
cmp dword [esp + 0x54], ebp
je 0x10016c2e
mov eax, 0xfffffb4e
jmp 0x100175f8
mov eax, 9
test esi, esi
je 0x10016c40
mov eax, edi
neg eax
sbb eax, eax
add eax, 8
push eax
push 0
and ebx, 1
lea eax, [esp + 0xa4]
push ebx
push eax
call fcn.10009f60
mov esi, eax
test esi, esi
js 0x100175e3
lea eax, [esp + 0x18]
mov edi, 1
push eax
push 0x20
lea eax, [esp + 0xa4]
mov dword [esp + 0x1c], edi
push eax
call fcn.100096d0
mov esi, eax
test esi, esi
js 0x100175dc
push dword [esp + 0x18]
push dword [0x1006b724]
call fcn.10009db0
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x10016ca8
mov esi, 0xfffffc0d
jmp 0x100172ca
mov ebx, 0x1000114a
mov dword [esp + 0x48], 2
xor ebp, ebp
jmp 0x10016cc0
lea eax, [esp + 0x1c]
push eax
call fcn.1000b650
mov esi, eax
test esi, esi
js 0x100172c0
mov edi, dword [esp + 0x1c]
push 0x800
push 0
push edi
call fcn.1003d0a0
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [ecx + 0x800]
cmp edi, eax
jae 0x10016d27
movzx esi, byte [ebx]
inc ebx
cmp esi, 0x80
jae 0x10016d07
inc edi
add edi, esi
jmp 0x10016d1d
sub esi, 0x7f
push esi
push ebx
push edi
call fcn.1003d810
mov ecx, dword [esp + 0x28]
add esp, 0xc
add edi, esi
add ebx, esi
lea eax, [ecx + 0x800]
cmp edi, eax
jb 0x10016cf6
push 0
push dword [esp + 0x1c]
call fcn.100079a0
mov esi, eax
test esi, esi
js 0x100175bd
mov eax, dword [0x1006b724]
mov edi, dword [esp + 0x48]
push 0
push 0
push 0
push dword [eax + 0x28]
push dword [esp + 0x2c]
push edi
push dword [esp + 0x30]
call fcn.1000a430
mov esi, eax
test esi, esi
js 0x100175bd
push dword [esp + 0x1c]
call fcn.1000d180
mov eax, dword [esp + 0x1c]
cmp word [eax], 2
jne 0x10016d7e
mov dword [esp + ebp*4 + 0x5c], edi
inc ebp
inc edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x48], edi
cmp edi, 0x10
jb 0x10016cc0
test ebp, ebp
je 0x10016dda
lea eax, [esp + 0x1c]
dec ebp
push eax
push 2
push dword [esp + ebp*4 + 0x64]
push 0
push dword [esp + 0x28]
call fcn.1000aea0
mov esi, eax
test esi, esi
js 0x100172c0
push 0
push dword [esp + 0x20]
call fcn.10007f20
mov esi, eax
test esi, esi
js 0x100172c0
mov dword [esp + 0x1c], 0
test ebp, ebp
jne 0x10016d98
push 0
push dword [esp + 0x1c]
call fcn.100084b0
movzx ecx, word [esp + 0x30]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edx + 0x418]
xor eax, eax
mov word [edx + 0x410], cx
movzx ecx, word [esp + 0x3c]
mov word [edx + 0x412], cx
movzx ecx, word [esp + 0x38]
mov word [edx + 0x414], cx
mov ecx, dword [edx + 0x410]
mov word [edx + 0x416], ax
mov dword [esi], 2
mov dword [edx + 0x41c], 3
mov dword [edx + 0x420], 4
mov dword [edx + 0x424], 5
mov dword [edx + 0x428], 6
mov dword [edx + 0x42c], 7
mov dword [edx + 0x430], 0x20507ef
mov dword [edx + 0x434], 0x10607f1
mov dword [edx + 0x438], 0x10707f2
mov dword [edx + 0x43c], 0x80307df
mov dword [edx + 0x440], 0x80407e7
mov dword [edx + 0x444], 0x40807f3
mov dword [edx + 0x448], 0x40007d5
mov dword [edx + 0x44c], 0xffff07d0
mov dword [edx + 0x450], 0xfffc07cd
mov dword [edx + 0x454], 0x40107d9
mov dword [edx + 0x458], 0x20207dd
mov dword [edx + 0x45c], 0x20607de
mov dword [edx + 0x460], 0x10207dd
mov dword [edx + 0x464], 0x20807e2
mov dword [edx + 0x468], 0x307de
mov dword [edx + 0x46c], 0x407de
mov dword [edx + 0x470], 0x507de
mov dword [edx + 0x474], 0x40107d9
mov dword [edx + 0x478], 0x20707e0
mov dword [edx + 0x47c], 0xffff07d0
mov dword [edx + 0x480], 0x40007d5
mov dword [edx + 0x484], 0x20a07e4
mov dword [edx + 0x488], 0x10a07de
mov dword [edx + 0x48c], 0x507dc
mov dword [edx + 0x490], 0xd07e5
mov dword [edx + 0x494], 0x607dc
mov dword [edx + 0x498], 0x407dc
mov dword [edx + 0x49c], 0x307dc
mov dword [edx + 0x4a0], 0x20107d9
mov dword [edx + 0x4a4], 0x20c07e3
mov dword [edx + 0x4a8], 0x10807dc
mov dword [edx + 0x4ac], 0xffff07d0
mov dword [edx + 0x4b0], 0x40007d5
mov dword [edx + 0x4b4], 0x40b07df
mov dword [edx + 0x4b8], 0x10207db
mov dword [edx + 0x4bc], 0xfffe07cf
mov dword [edx + 0x4c0], 0xfffc07cd
mov dword [edx + 0x4c4], 0xfffd07ce
mov dword [edx + 0x4c8], 0xfffb07cc
mov dword [edx + 0x4cc], 0x10907dd
mov dword [edx + 0x4d0], 0x40107d9
mov dword [edx + 0x4d4], 0x207dd
mov dword [edx + 0x4d8], 0x40007d5
mov dword [edx + 0x4dc], 0xffff07d0
mov dword [edx + 0x4e0], 0x40007d5
mov dword [edx + 0x4e4], 0x10000
mov dword [edx + 0x4e8], eax
mov dword [edx + 0x4ec], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [edx + 0x414]
mov dword [eax + 0x18], ecx
mov ecx, 0x36
mov edi, dword [esp + 0x18]
add edi, 0x1c
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x1c]
push 0
push dword [esp + 0x20]
call fcn.10008080
mov esi, eax
mov dword [esp + 0x1c], 0
test esi, esi
js 0x100172c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
push 0
mov dword [eax + 0x124], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x108]
push eax
push 0
push 2
push ecx
call fcn.100295a0
mov esi, eax
test esi, esi
js 0x100172c0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x108]
or dword [eax + 0x2c], 0x200
mov eax, dword [esp + 0x18]
push dword [eax + 0x108]
call fcn.1002ae30
mov esi, eax
test esi, esi
js 0x100172c0
mov ecx, dword [esp + 0x18]
push 0
lea eax, [ecx + 0x10c]
push eax
push 0
push 3
push ecx
call fcn.100295a0
mov esi, eax
test esi, esi
js 0x100172c0
mov eax, dword [esp + 0x18]
push 0
mov eax, dword [eax + 0x10c]
or dword [eax + 0x2c], 0x200
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x110]
push eax
push 0
push 4
push ecx
call fcn.100295a0
mov esi, eax
test esi, esi
js 0x100172c0
mov eax, dword [esp + 0x18]
push 0
mov eax, dword [eax + 0x110]
or dword [eax + 0x2c], 0x200
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x114]
push eax
push 0
push 5
push ecx
call fcn.100295a0
mov esi, eax
test esi, esi
js 0x100172c0
mov eax, dword [esp + 0x18]
push 0
mov eax, dword [eax + 0x114]
or dword [eax + 0x2c], 0x200
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x118]
push eax
push 0
push 6
push ecx
call fcn.100295a0
mov esi, eax
test esi, esi
js 0x100172c0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x118]
or dword [eax + 0x2c], 0x200
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0xff
push dword [eax + 0x110]
call fcn.1000fa80
mov esi, eax
test esi, esi
js 0x100172c0
push 0
push 0
push dword [esp + 0x28]
call fcn.10010590
mov esi, eax
test esi, esi
js 0x100172c0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010040
mov esi, eax
test esi, esi
js 0x100172c0
cmp dword [esp + 0x24], 0
je 0x1001734c
push 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010270
mov esi, eax
test esi, esi
js 0x100172c0
lea eax, [esp + 0x2c]
push eax
push 0x10207dd
push dword [esp + 0x2c]
call fcn.1000d810
push dword [esp + 0x44]
movzx edi, byte [eax]
call fcn.1000d180
push 2
lea eax, [esp + 0x34]
push eax
push 0x20807e2
push dword [esp + 0x30]
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x100172c0
cmp edi, 0xa
je 0x1001725a
cmp edi, 0xc
jne 0x10017290
push 2
lea eax, [esp + 0x3c]
push eax
push 0x20607de
push dword [esp + 0x30]
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x100172c0
push 2
lea eax, [esp + 0x40]
push eax
push 0x20707e0
push dword [esp + 0x30]
call fcn.1000d330
mov esi, eax
test esi, esi
js 0x100172c0
push 0
push 0
push dword [esp + 0x28]
call fcn.10010590
mov esi, eax
test esi, esi
js 0x100172c0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010040
mov esi, eax
test esi, esi
jns 0x100171f1
xor ebp, ebp
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 0
push dword [esp + 0x44]
call fcn.10029350
push dword [esp + 0x20]
call fcn.100113e0
test eax, eax
js 0x100175f8
test ebp, ebp
je 0x100172f6
push ebp
push dword [0x1004936c]
call fcn.1003a290
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1001731c
mov eax, dword [eax + 0x800]
and dword [eax + 0x40], 0xfffffbff
push dword [esp + 0x1c]
call fcn.1000b4c0
test eax, eax
js 0x100175f8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001732a
push eax
call fcn.100092d0
test ebx, ebx
je 0x10017334
push ebx
call fcn.10009ea0
test edi, edi
je 0x10017345
lea eax, [esp + 0x9c]
push eax
call fcn.10039c40
mov eax, esi
jmp 0x100175f8
test esi, esi
js 0x100172c0
push dword [esp + 0x20]
call fcn.10011340
mov esi, eax
test esi, esi
js 0x100172c0
movzx eax, word [esp + 0x30]
mov word [esp + 0x4c], ax
movzx eax, word [esp + 0x3c]
mov word [esp + 0x4e], ax
movzx eax, word [esp + 0x38]
mov word [esp + 0x50], ax
xor eax, eax
mov word [esp + 0x52], ax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0xff
mov dword [esp + 0x2c], 0
push dword [eax + 0x114]
call fcn.1000fa80
mov esi, eax
test esi, esi
js 0x100172c0
push 0
push 0
push dword [esp + 0x28]
call 0x10077f98
mov esi, eax
test esi, esi
js 0x100172c0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010040
mov esi, eax
test esi, esi
js 0x100172c0
mov ebp, dword [esp + 0x50]
cmp dword [esp + 0x24], 0
je 0x10017493
push 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010270
mov esi, eax
test esi, esi
js 0x100172c0
lea eax, [esp + 0x2c]
push eax
push 0xfffd07ce
push dword [esp + 0x2c]
call fcn.1000d810
movzx esi, word [esp + 0x2c]
mov edi, eax
push dword [esp + 0x44]
shr esi, 3
call fcn.1000d180
test esi, esi
je 0x1001745a
mov eax, dword [esp + 0x4c]
lea ecx, [esi*8 - 5]
mov dword [edi], eax
mov esi, edi
mov dword [edi + 4], ebp
shr ecx, 2
add edi, 8
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push dword [esp + 0x28]
call fcn.10010590
mov esi, eax
test esi, esi
js 0x100172c0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010040
mov esi, eax
test esi, esi
jns 0x100173f1
jmp 0x100172c0
test esi, esi
js 0x100172c0
push dword [esp + 0x20]
call fcn.10011340
mov esi, eax
test esi, esi
js 0x100172c0
push 0x30
push dword [0x1004936c]
mov dword [esp + 0x28], 0
call fcn.10028ef0
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x100174d7
mov esi, 0xfffffc0d
jmp 0x100172c2
xor edi, edi
lea esp, [esp]
push 0
lea eax, [esp + 0x44]
push eax
push 0
push dword [ebx]
push dword [esp + 0x28]
call fcn.100295a0
mov esi, eax
test esi, esi
js 0x100172c2
movzx eax, byte [ebx + 5]
add ebx, 4
mov esi, dword [ebp]
mov dword [esp + 0x4c], ebx
lea ebp, [eax*8 + 0x18]
push ebp
push ebx
push esi
call fcn.1003d810
xor edx, edx
add esp, 0xc
cmp byte [esi + 1], dl
jbe 0x10017542
mov ebx, dword [esp + 0x34]
lea ecx, [esi + 0x1d]
lea esp, [esp]
mov byte [ecx], bl
lea ecx, [ecx + 8]
movzx eax, byte [esi + 1]
inc edx
cmp edx, eax
jb 0x10017530
mov ebx, dword [esp + 0x4c]
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x48]
push dword [esp + 0x24]
call fcn.10019a10
mov esi, eax
test esi, esi
js 0x100175d3
push 0
push dword [esp + 0x44]
call fcn.100290b0
add ebx, ebp
mov dword [esp + 0x40], 0
mov ebp, dword [esp + 0x28]
inc edi
cmp edi, 9
jb 0x100174e0
push ebp
push dword [0x1004936c]
call fcn.1003a290
mov eax, dword [0x1006b2a4]
xor ebp, ebp
mov ebx, dword [esp + 0x10]
push 0x100026b0
push ebx
push dword [esp + 0x60]
mov eax, dword [eax + 0x28]
call eax
mov esi, eax
test esi, esi
js 0x100172c6
mov eax, dword [esp + 0x18]
mov dword [eax + 8], 1
xor eax, eax
jmp 0x100175f8
push dword [esp + 0x1c]
call fcn.1000a1c0
mov dword [esp + 0x1c], 0
jmp 0x100172c0
mov ebp, dword [esp + 0x28]
jmp 0x100172c2
xor ebx, ebx
jmp 0x100172ca
xor ebx, ebx
xor edi, edi
jmp 0x100172ca
mov eax, 0xfffffc15
jmp 0x100175f8
mov eax, 0xfffffbda
mov ecx, dword [esp + 0x3a0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003d130
add esp, 0x394
ret 0x14