Function at 0x100c49e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x1013b58]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
mov edi, 0x800
push edi
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov dword [ebp - 0x15c], eax
test eax, eax
jne 0x100c4e3
mov esi, 0x8007000e
jmp 0x100c7d4
xor ecx, ecx
push edi
push ecx
mov word [eax], cx
call ebx
push eax
call esi
mov dword [ebp - 0x158], eax
test eax, eax
je 0x100c7ec
xor ecx, ecx
mov word [eax], cx
mov edi, dword [0x1013fd4]
cmp edi, 0x1013fd4
je 0x100c7a2
mov ebx, 0x400
push ebx
push dword [ebp - 0x15c]
push dword [edi + 8]
call fcn.0100c0ac
mov esi, eax
test esi, esi
jl 0x100c7a4
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
push 0x1001c7c
push dword [ebp - 0x15c]
call esi
pop ecx
pop ecx
test eax, eax
je 0x100c7e5
push eax
call fcn.0100c036
mov dword [edi + 0x24], eax
test eax, eax
je 0x100c7ec
and dword [edi + 0x18], 0
push 0x1001c7c
push 0
call esi
pop ecx
pop ecx
mov dword [ebp - 0x160], eax
test eax, eax
je 0x100c7e5
xor ecx, ecx
cmp cx, word [eax]
je 0x100c5bc
push 0x1001844
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100c5bc
push dword [ebp - 0x160]
call fcn.0100c036
mov dword [edi + 0x28], eax
test eax, eax
je 0x100c7ec
test dword [edi + 0x20], 0x40
jne 0x100c5bc
mov dword [edi + 0x18], 1
push 0x1001c7c
push 0
call esi
pop ecx
pop ecx
test eax, eax
je 0x100c7e5
mov edx, 0x1001844
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x100c5fc
test si, si
je 0x100c5f8
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x100c5fc
add ecx, 4
add edx, 4
test si, si
jne 0x100c5d6
xor ecx, ecx
jmp 0x100c601
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x100c60b
push eax
jmp 0x100c768
mov eax, dword [edi + 0x1c]
test eax, eax
jle 0x100c774
cmp eax, 2
jle 0x100c632
cmp eax, 3
je 0x100c744
cmp eax, 4
je 0x100c64d
cmp eax, 5
jne 0x100c774
test byte [edi + 0x20], 0x80
push ebx
push dword [ebp - 0x158]
je 0x100c752
push 0x3bc5
jmp 0x100c757
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x50
lea eax, [ebp - 0x154]
push eax
push 0x1f
push ebx
call esi
test eax, eax
jne 0x100c66c
mov word [ebp - 0x154], ax
push 0x50
lea eax, [ebp - 0xb4]
push eax
push 0x1003
push ebx
call esi
test eax, eax
jne 0x100c688
mov word [ebp - 0xb4], ax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x28
push ebx
call esi
test eax, eax
jne 0x100c69b
mov word [ebp - 0x14], ax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x29
push ebx
call esi
test eax, eax
jne 0x100c6ae
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xb4]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x100c6c8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100c6ce
sub eax, edx
sar eax, 1
je 0x100c720
lea eax, [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100c6e4
sub eax, edx
sar eax, 1
je 0x100c720
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x154]
push eax
push 0x1001c60
push ebx
push dword [ebp - 0x158]
call fcn.01007db7
add esp, 0x1c
jmp 0x100c75c
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x154]
push eax
push 0x1001c54
push ebx
push dword [ebp - 0x158]
call fcn.01007db7
add esp, 0x14
jmp 0x100c75c
push ebx
push dword [ebp - 0x158]
push 0x3bc6
jmp 0x100c757
push 0x3bc4
call fcn.0100c0ac
mov esi, eax
test esi, esi
jl 0x100c7a4
push dword [ebp - 0x158]
call fcn.0100c036
mov dword [edi + 0x2c], eax
test eax, eax
je 0x100c7ec
push 0x1001c7c
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
test eax, eax
je 0x100c7e5
push eax
call fcn.0100c036
mov dword [edi + 0x30], eax
test eax, eax
je 0x100c7ec
mov edi, dword [edi]
cmp edi, 0x1013fd4
jne 0x100c519
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
cmp dword [ebp - 0x158], ebx
je 0x100c7c4
push dword [ebp - 0x158]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
push dword [ebp - 0x15c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b071
leave
ret
mov esi, 0x8000ffff
jmp 0x100c7a4
mov esi, 0x8007000e
jmp 0x100c7a4