Function at 0x1001e8b2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
push esi
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x1001e921
lea eax, [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x1001e8e9
push 0
push 0x12d2
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
jmp 0x1001e91c
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x1001e91c
push 0
push 0x10a
push 0xe95
push 0x23fe
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
jmp 0x1001eda2
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x1001ed85
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x9c], 0x20a3
cmp dword [ebp - 0x9c], 0xccd
jge 0x1001eba9
mov dword [ebp - 0x12c], 0x1f
mov dword [ebp - 0x128], 0x1c
mov dword [ebp - 0x124], 0x1f
mov dword [ebp - 0x120], 0x1e
mov dword [ebp - 0x11c], 0x1f
mov dword [ebp - 0x118], 0x1e
mov dword [ebp - 0x114], 0x1f
mov dword [ebp - 0x110], 0x1f
mov dword [ebp - 0x10c], 0x1e
mov dword [ebp - 0x108], 0x1f
mov dword [ebp - 0x104], 0x1e
mov dword [ebp - 0x100], 0x1f
mov dword [ebp - 0xfc], 0x1f
mov dword [ebp - 0xf8], 0x1c
mov dword [ebp - 0xf4], 0x1f
mov dword [ebp - 0xf0], 0x1e
mov dword [ebp - 0xec], 0x1f
mov dword [ebp - 0xe8], 0x1e
mov dword [ebp - 0xe4], 0x1f
mov dword [ebp - 0xe0], 0x1f
mov dword [ebp - 0xdc], 0x1e
mov dword [ebp - 0xd8], 0x1f
mov dword [ebp - 0xd4], 0x1e
mov dword [ebp - 0xd0], 0x1f
mov dword [ebp - 0xcc], 0x1f
mov dword [ebp - 0xc8], 0x1d
mov dword [ebp - 0xc4], 0x1f
mov dword [ebp - 0xc0], 0x1e
mov dword [ebp - 0xbc], 0x1f
mov dword [ebp - 0xb8], 0x1e
mov dword [ebp - 0xb4], 0x1f
mov dword [ebp - 0xb0], 0x1f
mov dword [ebp - 0xac], 0x1e
mov dword [ebp - 0xa8], 0x1f
mov dword [ebp - 0xa4], 0x1e
mov dword [ebp - 0xa0], 0x1f
lea eax, [ebp - 0x38]
push eax
push 0x1000820c
call fcn.1004f2db
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
jmp 0x1001eb04
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x38]
jge 0x1001eb25
mov eax, dword [ebp - 0x1c]
lea eax, [ebp + eax*4 - 0x1c0]
push eax
push 0x1000820c
call fcn.1004f2db
pop ecx
pop ecx
jmp 0x1001eafd
mov byte [ebp - 1], 1
and dword [ebp - 0x20], 0
jmp 0x1001eb36
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x24
jge 0x1001eb88
mov byte [ebp - 1], 1
and dword [ebp - 0x18], 0
jmp 0x1001eb4d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x38]
jge 0x1001eb7c
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
cdq
push 0x24
pop ecx
idiv ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x1c0]
cmp eax, dword [ebp + edx*4 - 0x12c]
je 0x1001eb7a
mov byte [ebp - 1], 0
jmp 0x1001eb7c
jmp 0x1001eb46
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001eb86
jmp 0x1001eb88
jmp 0x1001eb2f
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001eb99
mov dword [ebp - 0x40], 0x10008220
jmp 0x1001eba0
mov dword [ebp - 0x40], 0x10008224
push dword [ebp - 0x40]
call fcn.10050586
pop ecx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10016e4d
cmp dword [eax], 0
jne 0x1001eca4
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10016e4d
cmp dword [eax], 0
je 0x1001ec2e
mov eax, 0xa6b7
test eax, eax
je 0x1001ec2e
mov dword [ebp - 0x2c], 1
jmp 0x1001ec32
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10016e4d
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax]
jl 0x1001ec4f
mov dword [ebp - 0x24], 1
jmp 0x1001ec53
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jg 0x1001ec71
mov dword [ebp - 0x84], 1
jmp 0x1001ec78
and dword [ebp - 0x84], 0
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10016e4d
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10016e4d
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10016e4d
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
jne 0x1001eca4
and dword [ebp - 0x30], 0
jmp 0x1001ecab
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
jne 0x1001ecd0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10016e4d
cmp dword [eax], 0
je 0x1001ecd0
mov dword [ebp - 0x34], 1
jmp 0x1001ecd4
and dword [ebp - 0x34], 0
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10016e4d
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10016e4d
mov eax, dword [eax]
imul eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
push 3
mov ecx, dword [ebp - 0x14]
call fcn.10016e4d
cmp esi, dword [eax]
je 0x1001ed0f
mov dword [ebp - 0x3c], 1
jmp 0x1001ed13
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
imul eax, dword [ebp - 0x3c]
test eax, eax
je 0x1001ed35
mov eax, 0xcf0adc10
test eax, eax
je 0x1001ed35
mov dword [ebp - 0x8c], 1
jmp 0x1001ed3c
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 8]
mov esi, dword [eax]
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10016e4d
add esi, dword [eax]
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10016e4d
imul esi, dword [eax]
push 2
mov ecx, dword [ebp - 0x14]
call fcn.10016e4d
cmp esi, dword [eax]
jne 0x1001ed74
mov dword [ebp - 0x44], 1
jmp 0x1001ed78
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
jmp 0x1001eda2
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1001eda2
push 0x1d56
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
pop esi
mov esp, ebp
pop ebp
ret