Function at 0x100177f2
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x394
mov eax, dword [0x10049200]
xor eax, esp
mov dword [esp + 0x390], eax
cmp dword [0x1004a364], 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 0x1001759d
mov eax, 0xfffffbd7
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.1003de00
add esp, 0x394
ret 0x14
mov dword [0x1006c724], edx
mov eax, dword [edx + 0x2c]
mov dword [0x1006c2b0], eax
cmp dword [edx + 0x28], 0
je 0x100175cd
mov eax, 0xfffffbac
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.1003de00
add esp, 0x394
ret 0x14
test ecx, ecx
jne 0x100175ed
mov eax, 0xfffffbd8
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.1003de00
add esp, 0x394
ret 0x14
push ebx
push ebp
xor edx, edx
mov dword [0x1004cb68], 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 0x10018253
lea esp, [esp]
mov bl, byte [ecx]
xor esi, esi
mov edi, ecx
cmp bl, 0x3b
je 0x10017642
jmp 0x10017630
inc edi
test bl, bl
je 0x10017643
cmp bl, 0x3d
mov bl, byte [edi]
cmove esi, edi
cmp bl, 0x3b
jne 0x10017630
inc edi
test eax, eax
je 0x10017652
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x10017709
test esi, esi
je 0x1001824c
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.1002c970
test eax, eax
js 0x10018258
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.1002c970
test eax, eax
js 0x10018258
lea eax, [esp + 0x2a0]
push eax
lea eax, [esp + 0x1a4]
push eax
call fcn.1003b18b
test eax, eax
je 0x100177bc
mov eax, dword [esp + 0x48]
add ebp, 0x14
inc dword [esp + 0x34]
add eax, 0x14
mov dword [esp + 0x48], eax
cmp eax, 0x64
jb 0x100176a4
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
test bl, bl
je 0x10017724
cmp byte [edi], 0
mov ecx, edi
jne 0x10017620
test edx, edx
je 0x10018253
mov ecx, dword [esp + 0x30]
test ebp, ebp
mov eax, 1
cmove ecx, eax
mov dword [esp + 0x30], ecx
test esi, esi
jne 0x10017758
movzx eax, word [esp + 0x3c]
push eax
call fcn.1002af20
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.1002c390
mov ebx, dword [esp + 0x3b8]
mov edi, ebx
mov dword [esp + 0x34], eax
and edi, 2
je 0x10017797
cmp eax, 4
je 0x1001778e
cmp eax, 5
je 0x1001778e
cmp eax, 6
jne 0x10017797
mov eax, 1
mov dword [esp + 0x34], eax
mov esi, ebx
and esi, 4
je 0x100177a7
cmp eax, 6
ja 0x10018253
cmp eax, 0xff
jne 0x10017846
mov eax, 0xfffffbd8
jmp 0x10018258
cmp byte [esi], 0x20
jne 0x100177c7
inc esi
cmp byte [esi], 0x20
je 0x100177c1
cmp esi, edi
je 0x1001824c
mov eax, edi
sub eax, esi
dec eax
push eax
push esi
call fcn.10018290
movzx ecx, ax
mov eax, dword [esp + 0x34]
cmp eax, 3
ja case.default.0x100177eb
jmp dword [eax*4 + 0x10018274]
mov eax, ecx
mov ebp, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
jmp 0x1001770d
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 0x10017711
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 0x10017715
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 0x10018258
cmp dword [esp + 0x54], ebp
je 0x1001788e
mov eax, 0xfffffb4e
jmp 0x10018258
mov eax, 9
test esi, esi
je 0x100178a0
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.1000a450
mov esi, eax
test esi, esi
js 0x10018243
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 0x1001823c
push dword [esp + 0x18]
push dword [0x1006c724]
call fcn.1000a2a0
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x10017908
mov esi, 0xfffffc0d
jmp 0x10017f2a
mov ebx, 0x1000114a
mov dword [esp + 0x48], 2
xor ebp, ebp
jmp 0x10017920
lea eax, [esp + 0x1c]
push eax
call fcn.1000bb60
mov esi, eax
test esi, esi
js 0x10017f20
mov edi, dword [esp + 0x1c]
push 0x800
push 0
push edi
call fcn.1003dd70
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [ecx + 0x800]
cmp edi, eax
jae 0x10017987
movzx esi, byte [ebx]
inc ebx
cmp esi, 0x80
jae 0x10017967
inc edi
add edi, esi
jmp 0x1001797d
sub esi, 0x7f
push esi
push ebx
push edi
call fcn.1003e4e0
mov ecx, dword [esp + 0x28]
add esp, 0xc
add edi, esi
add ebx, esi
lea eax, [ecx + 0x800]
cmp edi, eax
jb 0x10017956
push 0
push dword [esp + 0x1c]
call fcn.100079a0
mov esi, eax
test esi, esi
js 0x1001821d
mov eax, dword [0x1006c724]
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.1000a920
mov esi, eax
test esi, esi
js 0x1001821d
push dword [esp + 0x1c]
call fcn.1000dde0
mov eax, dword [esp + 0x1c]
cmp word [eax], 2
jne 0x100179de
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 0x10017920
test ebp, ebp
je 0x10017a3a
lea eax, [esp + 0x1c]
dec ebp
push eax
push 2
push dword [esp + ebp*4 + 0x64]
push 0
push dword [esp + 0x28]
call fcn.1000b390
mov esi, eax
test esi, esi
js 0x10017f20
push 0
push dword [esp + 0x20]
call fcn.10007f20
mov esi, eax
test esi, esi
js 0x10017f20
mov dword [esp + 0x1c], 0
test ebp, ebp
jne 0x100179f8
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 0x10017f20
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.1002a290
mov esi, eax
test esi, esi
js 0x10017f20
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.1007613a
mov esi, eax
test esi, esi
js 0x10017f20
mov ecx, dword [esp + 0x18]
push 0
lea eax, [ecx + 0x10c]
push eax
push 0
push 3
push ecx
call fcn.1002a290
mov esi, eax
test esi, esi
js 0x10017f20
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.1002a290
mov esi, eax
test esi, esi
js 0x10017f20
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.1002a290
mov esi, eax
test esi, esi
js 0x10017f20
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.1002a290
mov esi, eax
test esi, esi
js 0x10017f20
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.100106e0
mov esi, eax
test esi, esi
js 0x10017f20
push 0
push 0
push dword [esp + 0x28]
call fcn.100111f0
mov esi, eax
test esi, esi
js 0x10017f20
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010ca0
mov esi, eax
test esi, esi
js 0x10017f20
cmp dword [esp + 0x24], 0
je 0x10017fac
push 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010ed0
mov esi, eax
test esi, esi
js 0x10017f20
lea eax, [esp + 0x2c]
push eax
push 0x10207dd
push dword [esp + 0x2c]
call fcn.1000e470
push dword [esp + 0x44]
movzx edi, byte [eax]
call fcn.1000dde0
push 2
lea eax, [esp + 0x34]
push eax
push 0x20807e2
push dword [esp + 0x30]
call fcn.1000df90
mov esi, eax
test esi, esi
js 0x10017f20
cmp edi, 0xa
je 0x10017eba
cmp edi, 0xc
jne 0x10017ef0
push 2
lea eax, [esp + 0x3c]
push eax
push 0x20607de
push dword [esp + 0x30]
call fcn.1000df90
mov esi, eax
test esi, esi
js 0x10017f20
push 2
lea eax, [esp + 0x40]
push eax
push 0x20707e0
push dword [esp + 0x30]
call fcn.1000df90
mov esi, eax
test esi, esi
js 0x10017f20
push 0
push 0
push dword [esp + 0x28]
call fcn.100111f0
mov esi, eax
test esi, esi
js 0x10017f20
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010ca0
mov esi, eax
test esi, esi
jns 0x10017e51
xor ebp, ebp
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 0
push dword [esp + 0x44]
call fcn.1002a040
push dword [esp + 0x20]
call fcn.10012040
test eax, eax
js 0x10018258
test ebp, ebp
je 0x10017f56
push ebp
push dword [0x1004a36c]
call fcn.1003af60
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10017f7c
mov eax, dword [eax + 0x800]
and dword [eax + 0x40], 0xfffffbff
push dword [esp + 0x1c]
call fcn.1000b9d0
test eax, eax
js 0x10018258
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10017f8a
push eax
call fcn.100092d0
test ebx, ebx
je 0x10017f94
push ebx
call fcn.1000a390
test edi, edi
je 0x10017fa5
lea eax, [esp + 0x9c]
push eax
call fcn.1003a910
mov eax, esi
jmp 0x10018258
test esi, esi
js 0x10017f20
push dword [esp + 0x20]
call fcn.10011fa0
mov esi, eax
test esi, esi
js 0x10017f20
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.100106e0
mov esi, eax
test esi, esi
js 0x10017f20
push 0
push 0
push dword [esp + 0x28]
call fcn.100111f0
mov esi, eax
test esi, esi
js 0x10017f20
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010ca0
mov esi, eax
test esi, esi
js 0x10017f20
mov ebp, dword [esp + 0x50]
cmp dword [esp + 0x24], 0
je 0x100180f3
push 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010ed0
mov esi, eax
test esi, esi
js 0x10017f20
lea eax, [esp + 0x2c]
push eax
push 0xfffd07ce
push dword [esp + 0x2c]
call fcn.1000e470
movzx esi, word [esp + 0x2c]
mov edi, eax
push dword [esp + 0x44]
shr esi, 3
call fcn.1000dde0
test esi, esi
je 0x100180ba
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.100111f0
mov esi, eax
test esi, esi
js 0x10017f20
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.10010ca0
mov esi, eax
test esi, esi
jns 0x10018051
jmp 0x10017f20
test esi, esi
js 0x10017f20
push dword [esp + 0x20]
call fcn.10011fa0
mov esi, eax
test esi, esi
js 0x10017f20
push 0x30
push dword [0x1004a36c]
mov dword [esp + 0x28], 0
call fcn.10029be0
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x10018137
mov esi, 0xfffffc0d
jmp 0x10017f22
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.1002a290
mov esi, eax
test esi, esi
js 0x10017f22
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.1003e4e0
xor edx, edx
add esp, 0xc
cmp byte [esi + 1], dl
jbe 0x100181a2
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 0x10018190
mov ebx, dword [esp + 0x4c]
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x48]
push dword [esp + 0x24]
call fcn.1001a690
mov esi, eax
test esi, esi
js 0x10018233
push 0
push dword [esp + 0x44]
call fcn.10029da0
add ebx, ebp
mov dword [esp + 0x40], 0
mov ebp, dword [esp + 0x28]
inc edi
cmp edi, 9
jb 0x10018140
push ebp
push dword [0x1004a36c]
call fcn.1003af60
mov eax, dword [0x1006c2a4]
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 0x10017f26
mov eax, dword [esp + 0x18]
mov dword [eax + 8], 1
xor eax, eax
jmp 0x10018258
push dword [esp + 0x1c]
call fcn.1000a6b0
mov dword [esp + 0x1c], 0
jmp 0x10017f20
mov ebp, dword [esp + 0x28]
jmp 0x10017f22
xor ebx, ebx
jmp 0x10017f2a
xor ebx, ebx
xor edi, edi
jmp 0x10017f2a
mov eax, 0xfffffc15
jmp 0x10018258
mov eax, 0xfffffbda
mov ecx, dword [esp + 0x3a0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003de00
add esp, 0x394
ret 0x14