Function at 0x100a0cb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x100e318]
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 0x100a110
mov esi, 0x8007000e
jmp 0x100a401
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 0x100a419
xor ecx, ecx
mov word [eax], cx
mov edi, dword [0x100e714]
cmp edi, 0x100e714
je 0x100a3cf
mov ebx, 0x400
push ebx
push dword [ebp - 0x15c]
push dword [edi + 8]
call fcn.0100a04f
mov esi, eax
test esi, esi
jl 0x100a3d1
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
push 0x1001eb8
push dword [ebp - 0x15c]
call esi
pop ecx
pop ecx
test eax, eax
je 0x100a412
push eax
call fcn.01009fd9
mov dword [edi + 0x24], eax
test eax, eax
je 0x100a419
and dword [edi + 0x18], 0
push 0x1001eb8
push 0
call esi
pop ecx
pop ecx
mov dword [ebp - 0x160], eax
test eax, eax
je 0x100a412
xor ecx, ecx
cmp cx, word [eax]
je 0x100a1e9
push 0x1001eb4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100a1e9
push dword [ebp - 0x160]
call fcn.01009fd9
mov dword [edi + 0x28], eax
test eax, eax
je 0x100a419
test dword [edi + 0x20], 0x40
jne 0x100a1e9
mov dword [edi + 0x18], 1
push 0x1001eb8
push 0
call esi
pop ecx
pop ecx
test eax, eax
je 0x100a412
mov edx, 0x1001eb4
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x100a229
test si, si
je 0x100a225
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x100a229
add ecx, 4
add edx, 4
test si, si
jne 0x100a203
xor ecx, ecx
jmp 0x100a22e
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x100a238
push eax
jmp 0x100a395
mov eax, dword [edi + 0x1c]
test eax, eax
jle 0x100a3a1
cmp eax, 2
jle 0x100a25f
cmp eax, 3
je 0x100a371
cmp eax, 4
je 0x100a27a
cmp eax, 5
jne 0x100a3a1
test byte [edi + 0x20], 0x80
push ebx
push dword [ebp - 0x158]
je 0x100a37f
push 0x3bc5
jmp 0x100a384
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 0x100a299
mov word [ebp - 0x154], ax
push 0x50
lea eax, [ebp - 0xb4]
push eax
push 0x1003
push ebx
call esi
test eax, eax
jne 0x100a2b5
mov word [ebp - 0xb4], ax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x28
push ebx
call esi
test eax, eax
jne 0x100a2c8
mov word [ebp - 0x14], ax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x29
push ebx
call esi
test eax, eax
jne 0x100a2db
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 0x100a2f5
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 0x100a2fb
sub eax, edx
sar eax, 1
je 0x100a34d
lea eax, [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100a311
sub eax, edx
sar eax, 1
je 0x100a34d
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 0x1001e98
push ebx
push dword [ebp - 0x158]
call fcn.01006792
add esp, 0x1c
jmp 0x100a389
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x154]
push eax
push 0x1001e8c
push ebx
push dword [ebp - 0x158]
call fcn.01006792
add esp, 0x14
jmp 0x100a389
push ebx
push dword [ebp - 0x158]
push 0x3bc6
jmp 0x100a384
push 0x3bc4
call fcn.0100a04f
mov esi, eax
test esi, esi
jl 0x100a3d1
push dword [ebp - 0x158]
call fcn.01009fd9
mov dword [edi + 0x2c], eax
test eax, eax
je 0x100a419
push 0x1001eb8
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
test eax, eax
je 0x100a412
push eax
call fcn.01009fd9
mov dword [edi + 0x30], eax
test eax, eax
je 0x100a419
mov edi, dword [edi]
cmp edi, 0x100e714
jne 0x100a146
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
cmp dword [ebp - 0x158], ebx
je 0x100a3f1
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.010091bd
leave
ret
mov esi, 0x8000ffff
jmp 0x100a3d1
mov esi, 0x8007000e
jmp 0x100a3d1