Function at 0x104c783
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x1055908]
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 0x104c7c8
mov esi, 0x8007000e
jmp 0x104cab9
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 0x104cad1
xor ecx, ecx
mov word [eax], cx
mov edi, dword [0x10579a0]
cmp edi, 0x10579a0
je 0x104ca87
mov ebx, 0x400
push ebx
push dword [ebp - 0x15c]
push dword [edi + 8]
call fcn.0104c391
mov esi, eax
test esi, esi
jl 0x104ca89
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
push 0x101749c
push dword [ebp - 0x15c]
call esi
pop ecx
pop ecx
test eax, eax
je 0x104caca
push eax
call fcn.0104c31b
mov dword [edi + 0x24], eax
test eax, eax
je 0x104cad1
and dword [edi + 0x18], 0
push 0x101749c
push 0
call esi
pop ecx
pop ecx
mov dword [ebp - 0x160], eax
test eax, eax
je 0x104caca
xor ecx, ecx
cmp cx, word [eax]
je 0x104c8a1
push 0x1017498
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x104c8a1
push dword [ebp - 0x160]
call fcn.0104c31b
mov dword [edi + 0x28], eax
test eax, eax
je 0x104cad1
test dword [edi + 0x20], 0x40
jne 0x104c8a1
mov dword [edi + 0x18], 1
push 0x101749c
push 0
call esi
pop ecx
pop ecx
test eax, eax
je 0x104caca
mov edx, 0x1017498
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x104c8e1
test si, si
je 0x104c8dd
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x104c8e1
add ecx, 4
add edx, 4
test si, si
jne 0x104c8bb
xor ecx, ecx
jmp 0x104c8e6
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x104c8f0
push eax
jmp 0x104ca4d
mov eax, dword [edi + 0x1c]
test eax, eax
jle 0x104ca59
cmp eax, 2
jle 0x104c917
cmp eax, 3
je 0x104ca29
cmp eax, 4
je 0x104c932
cmp eax, 5
jne 0x104ca59
test byte [edi + 0x20], 0x80
push ebx
push dword [ebp - 0x158]
je 0x104ca37
push 0x3bc5
jmp 0x104ca3c
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 0x104c951
mov word [ebp - 0x154], ax
push 0x50
lea eax, [ebp - 0xb4]
push eax
push 0x1003
push ebx
call esi
test eax, eax
jne 0x104c96d
mov word [ebp - 0xb4], ax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x28
push ebx
call esi
test eax, eax
jne 0x104c980
mov word [ebp - 0x14], ax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x29
push ebx
call esi
test eax, eax
jne 0x104c993
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 0x104c9ad
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 0x104c9b3
sub eax, edx
sar eax, 1
je 0x104ca05
lea eax, [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x104c9c9
sub eax, edx
sar eax, 1
je 0x104ca05
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 0x101747c
push ebx
push dword [ebp - 0x158]
call fcn.0101bca7
add esp, 0x1c
jmp 0x104ca41
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x154]
push eax
push 0x1017470
push ebx
push dword [ebp - 0x158]
call fcn.0101bca7
add esp, 0x14
jmp 0x104ca41
push ebx
push dword [ebp - 0x158]
push 0x3bc6
jmp 0x104ca3c
push 0x3bc4
call fcn.0104c391
mov esi, eax
test esi, esi
jl 0x104ca89
push dword [ebp - 0x158]
call fcn.0104c31b
mov dword [edi + 0x2c], eax
test eax, eax
je 0x104cad1
push 0x101749c
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
test eax, eax
je 0x104caca
push eax
call fcn.0104c31b
mov dword [edi + 0x30], eax
test eax, eax
je 0x104cad1
mov edi, dword [edi]
cmp edi, 0x10579a0
jne 0x104c7fe
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
cmp dword [ebp - 0x158], ebx
je 0x104caa9
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.0101ca75
leave
ret
mov esi, 0x8000ffff
jmp 0x104ca89
mov esi, 0x8007000e
jmp 0x104ca89