Function at 0x100c4ad
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 0x100c4f2
mov esi, 0x8007000e
jmp 0x100c7e3
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 0x100c7fb
xor ecx, ecx
mov word [eax], cx
mov edi, dword [0x1013fd4]
cmp edi, 0x1013fd4
je 0x100c7b1
mov ebx, 0x400
push ebx
push dword [ebp - 0x15c]
push dword [edi + 8]
call fcn.0100c0bb
mov esi, eax
test esi, esi
jl 0x100c7b3
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
push 0x1001c7c
push dword [ebp - 0x15c]
call esi
pop ecx
pop ecx
test eax, eax
je 0x100c7f4
push eax
call fcn.0100c045
mov dword [edi + 0x24], eax
test eax, eax
je 0x100c7fb
and dword [edi + 0x18], 0
push 0x1001c7c
push 0
call esi
pop ecx
pop ecx
mov dword [ebp - 0x160], eax
test eax, eax
je 0x100c7f4
xor ecx, ecx
cmp cx, word [eax]
je 0x100c5cb
push 0x1001844
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100c5cb
push dword [ebp - 0x160]
call fcn.0100c045
mov dword [edi + 0x28], eax
test eax, eax
je 0x100c7fb
test dword [edi + 0x20], 0x40
jne 0x100c5cb
mov dword [edi + 0x18], 1
push 0x1001c7c
push 0
call esi
pop ecx
pop ecx
test eax, eax
je 0x100c7f4
mov edx, 0x1001844
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x100c60b
test si, si
je 0x100c607
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x100c60b
add ecx, 4
add edx, 4
test si, si
jne 0x100c5e5
xor ecx, ecx
jmp 0x100c610
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x100c61a
push eax
jmp 0x100c777
mov eax, dword [edi + 0x1c]
test eax, eax
jle 0x100c783
cmp eax, 2
jle 0x100c641
cmp eax, 3
je 0x100c753
cmp eax, 4
je 0x100c65c
cmp eax, 5
jne 0x100c783
test byte [edi + 0x20], 0x80
push ebx
push dword [ebp - 0x158]
je 0x100c761
push 0x3bc5
jmp 0x100c766
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 0x100c67b
mov word [ebp - 0x154], ax
push 0x50
lea eax, [ebp - 0xb4]
push eax
push 0x1003
push ebx
call esi
test eax, eax
jne 0x100c697
mov word [ebp - 0xb4], ax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x28
push ebx
call esi
test eax, eax
jne 0x100c6aa
mov word [ebp - 0x14], ax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x29
push ebx
call esi
test eax, eax
jne 0x100c6bd
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 0x100c6d7
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 0x100c6dd
sub eax, edx
sar eax, 1
je 0x100c72f
lea eax, [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100c6f3
sub eax, edx
sar eax, 1
je 0x100c72f
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 0x100c76b
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 0x100c76b
push ebx
push dword [ebp - 0x158]
push 0x3bc6
jmp 0x100c766
push 0x3bc4
call fcn.0100c0bb
mov esi, eax
test esi, esi
jl 0x100c7b3
push dword [ebp - 0x158]
call fcn.0100c045
mov dword [edi + 0x2c], eax
test eax, eax
je 0x100c7fb
push 0x1001c7c
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
test eax, eax
je 0x100c7f4
push eax
call fcn.0100c045
mov dword [edi + 0x30], eax
test eax, eax
je 0x100c7fb
mov edi, dword [edi]
cmp edi, 0x1013fd4
jne 0x100c528
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
cmp dword [ebp - 0x158], ebx
je 0x100c7d3
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.0100b081
leave
ret
mov esi, 0x8000ffff
jmp 0x100c7b3
mov esi, 0x8007000e
jmp 0x100c7b3