Function at 0x10041aa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x10093b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x860], eax
xor eax, eax
mov esi, 0x1001498
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x46]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov esi, 0x1001490
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x32]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x14], 0x2f
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x24], 0x3a
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x86c], 0
stosd dword es:[edi], eax
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, 0x400
push esi
lea eax, [ebp - 0x84c]
push eax
push 0x21
push esi
mov dword [ebp - 0x858], ecx
call edi
xor ebx, ebx
inc ebx
cmp eax, ebx
jle 0x100425a
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x86c], eax
push 9
lea eax, [ebp - 0x84c]
push eax
push 0x28
push esi
call edi
cmp eax, ebx
jle 0x100427e
lea eax, [ebp - 0x84c]
push eax
push 9
lea eax, [ebp - 0x38]
push eax
call fcn.010024cc
push 9
lea eax, [ebp - 0x84c]
push eax
push 0x29
push esi
call edi
cmp eax, ebx
jle 0x10042a2
lea eax, [ebp - 0x84c]
push eax
push 9
lea eax, [ebp - 0x4c]
push eax
call fcn.010024cc
push 8
lea eax, [ebp - 0x84c]
push eax
push 0x1e
push esi
call edi
cmp eax, ebx
jle 0x10042c6
lea eax, [ebp - 0x84c]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
call fcn.010024cc
push 8
lea eax, [ebp - 0x84c]
push eax
push 0x1d
push esi
call edi
cmp eax, ebx
jle 0x10042ea
lea eax, [ebp - 0x84c]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
call fcn.010024cc
push dword [ebp - 0x860]
lea eax, [ebp - 0x84c]
push esi
push eax
call fcn.010024cc
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
mov dword [ebp - 0x854], eax
mov edi, 0x1001488
lea eax, [ebp - 0x84c]
push edi
push eax
call esi
push edi
xor edi, edi
push edi
mov ebx, eax
call esi
add esp, 0x10
mov dword [ebp - 0x860], eax
jmp 0x10046b1
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x85c], edi
je 0x1004469
mov eax, dword [ebp - 0x86c]
sub eax, edi
je 0x1004393
dec eax
je 0x100437e
dec eax
jne 0x1004412
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
mov dword [ebp - 0x85c], eax
lea eax, [ebp - 0x14]
push eax
push edi
call esi
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push edi
call esi
mov edi, eax
jmp 0x10043b3
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0
call esi
mov ebx, eax
jmp 0x10043a5
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push edi
call esi
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0
call esi
mov dword [ebp - 0x85c], eax
add esp, 0x18
test ebx, ebx
je 0x10043e4
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push ebx
call fcn.01002991
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x10043e4
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 2], ax
test edi, edi
je 0x1004412
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push edi
call fcn.01002991
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x1004412
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 6], ax
cmp dword [ebp - 0x85c], 0
je 0x10046a3
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x85c]
call fcn.01002991
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x10046a3
cmp dword [ebp - 0x850], 0x64
jae 0x1004454
add dword [ebp - 0x850], 0x7d0
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx], ax
jmp 0x10046a3
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x864], edi
call fcn.0100411a
mov dword [ebp - 0x870], eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.0100411a
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x868], eax
je 0x10044bc
lea eax, [ebp - 0x24]
push eax
xor edi, edi
push 0
inc edi
call esi
pop ecx
pop ecx
mov dword [ebp - 0x85c], eax
mov ebx, 0x1001484
jmp 0x10044c7
mov ebx, 0x1001484
mov dword [ebp - 0x868], ebx
cmp dword [ebp - 0x85c], 0
je 0x10044e3
lea eax, [ebp - 0x24]
push eax
push 0
inc edi
call esi
pop ecx
pop ecx
mov dword [ebp - 0x864], eax
jmp 0x10044e9
mov dword [ebp - 0x85c], ebx
cmp dword [ebp - 0x864], 0
je 0x10044f5
inc edi
jmp 0x10044fb
mov dword [ebp - 0x864], ebx
cmp dword [ebp + 0x10], 0
je 0x1004504
push 3
pop edi
dec edi
je 0x10045fb
dec edi
je 0x10045b7
dec edi
jne 0x100462e
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x868]
call fcn.01002991
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x10046a3
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 8], ax
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x85c]
call fcn.01002991
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x10046a3
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 0xa], ax
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x864]
call fcn.01002991
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x10046a3
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 0xc], ax
jmp 0x1004637
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x868]
call fcn.01002991
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x10046a3
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 0xa], ax
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x85c]
jmp 0x100458e
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x868]
call fcn.01002991
test eax, eax
mov dword [ebp - 0x854], eax
jne 0x10046a3
mov ax, word [ebp - 0x850]
mov ecx, dword [ebp - 0x858]
mov word [ecx + 0xc], ax
cmp dword [ebp - 0x854], 0
jne 0x10046a3
cmp dword [ebp - 0x870], 0
je 0x1004674
mov ecx, dword [ebp - 0x858]
movzx eax, word [ecx + 8]
cmp ax, 0xc
jae 0x1004659
add eax, 0xc
mov word [ecx + 8], ax
jmp 0x1004674
jbe 0x1004674
lea eax, [ebp - 0x4c]
push eax
movzx eax, word [0x10093e4]
push 0x237
push eax
call fcn.010030fd
add esp, 0xc
cmp dword [ebp - 0x874], 0
je 0x10046a3
mov eax, dword [ebp - 0x858]
cmp word [eax + 8], 0xc
jbe 0x10046a3
lea eax, [ebp - 0x38]
push eax
movzx eax, word [0x10093e4]
push 0x237
push eax
call fcn.010030fd
add esp, 0xc
mov ebx, dword [ebp - 0x860]
xor edi, edi
mov dword [ebp - 0x860], edi
cmp ebx, edi
jne 0x100432e
cmp dword [ebp + 0x10], edi
je 0x10046e9
cmp dword [ebp - 0x854], edi
jne 0x10046e9
lea eax, [ebp - 0x87c]
push eax
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x10046e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x854], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x854]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007ed1
leave
ret 0xc