Function at 0x104c7a0
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 0x104c7e5
mov esi, 0x8007000e
jmp 0x104cad6
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 0x104caee
xor ecx, ecx
mov word [eax], cx
mov edi, dword [0x10579a0]
cmp edi, 0x10579a0
je 0x104caa4
mov ebx, 0x400
push ebx
push dword [ebp - 0x15c]
push dword [edi + 8]
call fcn.0104c3ae
mov esi, eax
test esi, esi
jl 0x104caa6
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
push 0x101749c
push dword [ebp - 0x15c]
call esi
pop ecx
pop ecx
test eax, eax
je 0x104cae7
push eax
call fcn.0104c338
mov dword [edi + 0x24], eax
test eax, eax
je 0x104caee
and dword [edi + 0x18], 0
push 0x101749c
push 0
call esi
pop ecx
pop ecx
mov dword [ebp - 0x160], eax
test eax, eax
je 0x104cae7
xor ecx, ecx
cmp cx, word [eax]
je 0x104c8be
push 0x1017498
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x104c8be
push dword [ebp - 0x160]
call fcn.0104c338
mov dword [edi + 0x28], eax
test eax, eax
je 0x104caee
test dword [edi + 0x20], 0x40
jne 0x104c8be
mov dword [edi + 0x18], 1
push 0x101749c
push 0
call esi
pop ecx
pop ecx
test eax, eax
je 0x104cae7
mov edx, 0x1017498
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x104c8fe
test si, si
je 0x104c8fa
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x104c8fe
add ecx, 4
add edx, 4
test si, si
jne 0x104c8d8
xor ecx, ecx
jmp 0x104c903
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x104c90d
push eax
jmp 0x104ca6a
mov eax, dword [edi + 0x1c]
test eax, eax
jle 0x104ca76
cmp eax, 2
jle 0x104c934
cmp eax, 3
je 0x104ca46
cmp eax, 4
je 0x104c94f
cmp eax, 5
jne 0x104ca76
test byte [edi + 0x20], 0x80
push ebx
push dword [ebp - 0x158]
je 0x104ca54
push 0x3bc5
jmp 0x104ca59
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 0x104c96e
mov word [ebp - 0x154], ax
push 0x50
lea eax, [ebp - 0xb4]
push eax
push 0x1003
push ebx
call esi
test eax, eax
jne 0x104c98a
mov word [ebp - 0xb4], ax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x28
push ebx
call esi
test eax, eax
jne 0x104c99d
mov word [ebp - 0x14], ax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x29
push ebx
call esi
test eax, eax
jne 0x104c9b0
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 0x104c9ca
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 0x104c9d0
sub eax, edx
sar eax, 1
je 0x104ca22
lea eax, [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x104c9e6
sub eax, edx
sar eax, 1
je 0x104ca22
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 0x104ca5e
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 0x104ca5e
push ebx
push dword [ebp - 0x158]
push 0x3bc6
jmp 0x104ca59
push 0x3bc4
call fcn.0104c3ae
mov esi, eax
test esi, esi
jl 0x104caa6
push dword [ebp - 0x158]
call fcn.0104c338
mov dword [edi + 0x2c], eax
test eax, eax
je 0x104caee
push 0x101749c
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
test eax, eax
je 0x104cae7
push eax
call fcn.0104c338
mov dword [edi + 0x30], eax
test eax, eax
je 0x104caee
mov edi, dword [edi]
cmp edi, 0x10579a0
jne 0x104c81b
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
cmp dword [ebp - 0x158], ebx
je 0x104cac6
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 0x104caa6
mov esi, 0x8007000e
jmp 0x104caa6