Function at 0x413814
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x413ef3
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, si
call fcn.0041367c
test ax, ax
jne 0x413897
movzx eax, si
call fcn.00413684
sub ax, 1
jb 0x413858
je 0x413869
dec ax
je 0x41387a
jmp 0x41388b
mov edx, ebx
mov eax, 0x4136a4
call fcn.00405818
jmp 0x413ed8
mov edx, ebx
mov eax, 0x4136ac
call fcn.00405818
jmp 0x413ed8
mov edx, ebx
mov eax, 0x4136b4
call fcn.00405818
jmp 0x413ed8
mov eax, ebx
call fcn.00403dd8
jmp 0x413ed8
push 0
push 0
push 2
xor edx, edx
mov eax, esi
call fcn.0041368c
push eax
call fcn.00405c68
mov edi, eax
test edi, edi
jle 0x4138ff
mov eax, ebx
mov edx, edi
call fcn.004043c8
push edi
mov eax, dword [ebx]
call fcn.00404298
push eax
push 2
xor edx, edx
mov eax, esi
call fcn.0041368c
push eax
call fcn.00405c68
test eax, eax
jne 0x4138e5
mov eax, ebx
call fcn.00403dd8
jmp 0x413e4f
mov eax, dword [ebx]
call fcn.00404298
call fcn.00407814
mov edx, eax
mov eax, ebx
call fcn.004043c8
jmp 0x413e4f
lea eax, [ebp - 8]
call fcn.00403dd8
lea eax, [ebp - 4]
call fcn.00403dd8
lea eax, [ebp - 0xc]
call fcn.00403dd8
movzx eax, si
call fcn.0041367c
movzx eax, ax
cmp eax, 0x61
ja case.0x413932.0
movzx eax, byte [eax + 0x413939]
jmp dword [eax*4 + 0x41399b]
lea edx, [ebp - 8]
mov eax, 0x4136bc
call fcn.00405818
movzx eax, si
call fcn.00413684
dec ax
je 0x413a49
dec ax
je 0x413a5b
dec ax
je 0x413a6d
dec ax
je 0x413a7f
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x4136c4
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x4136cc
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x4136d4
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x4136dc
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4136e4
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 8]
mov eax, 0x4136ec
call fcn.00405818
movzx eax, si
call fcn.00413684
dec ax
je 0x413ac7
dec ax
je 0x413ad9
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x4136f4
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x4136fc
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x413704
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 8]
mov eax, 0x41370c
call fcn.00405818
movzx eax, si
call fcn.00413684
dec ax
je 0x413b21
dec ax
je 0x413b33
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x413714
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x41371c
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x413724
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 8]
mov eax, 0x41372c
call fcn.00405818
movzx eax, si
call fcn.00413684
dec ax
je 0x413b7b
dec ax
je 0x413b8d
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x413734
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x41373c
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x413744
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x41374c
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x413754
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 8]
mov eax, 0x41375c
call fcn.00405818
movzx eax, si
call fcn.00413684
dec ax
je 0x413bf9
dec ax
je 0x413c0b
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x413764
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x41376c
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x413774
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x41377c
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 8]
mov eax, 0x413784
call fcn.00405818
movzx eax, si
call fcn.00413684
dec ax
je 0x413c65
dec ax
je 0x413c77
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x413734
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x41373c
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x41378c
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x413794
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x41379c
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137a4
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137ac
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137b4
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137bc
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137c4
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137cc
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137d4
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137dc
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137e4
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137ec
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137f4
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 4]
mov eax, 0x4137fc
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 8]
mov eax, 0x413804
call fcn.00405818
movzx eax, si
call fcn.00413684
sub ax, 2
jne case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x41371c
call fcn.00405818
jmp case.0x413932.0
lea edx, [ebp - 8]
mov eax, 0x41380c
call fcn.00405818
movzx eax, si
call fcn.00413684
sub ax, 2
jne case.0x413932.0
lea edx, [ebp - 0xc]
mov eax, 0x41371c
call fcn.00405818
cmp dword [ebp - 8], 0
je 0x413e29
cmp dword [ebp - 0xc], 0
je 0x413e07
push dword [ebp - 8]
push 0x413f0c
push dword [ebp - 0xc]
push 0x413f18
mov eax, ebx
mov edx, 4
call fcn.00404158
jmp 0x413e4f
movzx eax, si
call fcn.00413684
test ax, ax
jne 0x413e20
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00403e2c
jmp 0x413e4f
mov eax, ebx
call fcn.00403dd8
jmp 0x413e4f
cmp dword [ebp - 4], 0
je 0x413e48
movzx eax, si
call fcn.00413684
test ax, ax
jne 0x413e48
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403e2c
jmp 0x413e4f
mov eax, ebx
call fcn.00403dd8
cmp dword [ebx], 0
je 0x413ed8
mov edx, dword [ebx]
mov eax, 0x413f24
call fcn.00404380
mov edi, eax
movzx eax, si
call fcn.00413684
test ax, ax
jne 0x413ed8
cmp edi, 1
jle 0x413eb0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
mov ecx, edi
mov edx, 1
call fcn.004042f8
push dword [ebp - 0x10]
lea edx, [ebp - 0x14]
mov eax, 0x41369c
call fcn.00405818
push dword [ebp - 0x14]
push 0x413f18
mov eax, ebx
mov edx, 3
call fcn.00404158
jmp 0x413ed8
push dword [ebx]
push 0x413f0c
lea edx, [ebp - 0x18]
mov eax, 0x41369c
call fcn.00405818
push dword [ebp - 0x18]
push 0x413f18
mov eax, ebx
mov edx, 4
call fcn.00404158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413efa
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00403dfc
ret