Function at 0x1003fd3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
xor eax, eax
push ebx
push esi
push edi
mov esi, 0x1001570
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x52]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov esi, 0x1001568
lea edi, [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x66]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x24], 0x2f
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x28], 0
and dword [ebp - 8], 0
mov dword [ebp - 0x44], 0x3a
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x10083c0]
test eax, eax
mov edi, 0x400
jne 0x1004044
mov eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
lea ecx, [ebp - 0x874]
push ecx
push 0x21
push eax
call ebx
test eax, eax
jle 0x100406c
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x10083c0]
test eax, eax
jne 0x1004077
mov eax, edi
push 9
lea ecx, [ebp - 0x874]
push ecx
push 0x28
push eax
call ebx
test eax, eax
mov esi, dword [sym.imp.msvcrt.dll_wcsncpy]
jle 0x10040a1
push 9
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x6c]
push eax
call esi
add esp, 0xc
mov eax, dword [0x10083c0]
test eax, eax
jne 0x10040ac
mov eax, edi
push 9
lea ecx, [ebp - 0x874]
push ecx
push 0x29
push eax
call ebx
test eax, eax
jle 0x10040d0
push 9
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x58]
push eax
call esi
add esp, 0xc
mov eax, dword [0x10083c0]
test eax, eax
jne 0x10040db
mov eax, edi
push 8
lea ecx, [ebp - 0x874]
push ecx
push 0x1e
push eax
call ebx
test eax, eax
jle 0x10040ff
push 8
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x44]
push eax
call esi
add esp, 0xc
mov eax, dword [0x10083c0]
test eax, eax
jne 0x100410a
mov eax, edi
push 8
lea ecx, [ebp - 0x874]
push ecx
push 0x1d
push eax
call ebx
test eax, eax
jle 0x100412e
push 8
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x24]
push eax
call esi
add esp, 0xc
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x874]
push eax
call esi
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
and word [ebp - 0x76], 0
mov edi, 0x1001560
lea eax, [ebp - 0x874]
push edi
push eax
call esi
push edi
push 0
mov ebx, eax
call esi
add esp, 0x1c
test ebx, ebx
mov dword [ebp - 0x2c], eax
je 0x100441f
mov edi, 0xffff
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1004268
mov eax, dword [ebp - 0x28]
xor ecx, ecx
sub eax, ecx
mov dword [ebp - 4], ecx
je 0x10041cf
dec eax
je 0x10041ba
dec eax
jne 0x1004237
lea eax, [ebp - 0x24]
push eax
push ecx
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
push 0
call esi
mov dword [ebp - 0xc], eax
jmp 0x10041ee
lea eax, [ebp - 0x24]
push eax
push ecx
call esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
mov ebx, eax
jmp 0x10041e3
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
push 0
call esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push 0
call esi
mov dword [ebp - 4], eax
add esp, 0x18
test ebx, ebx
je 0x1004212
push edi
lea eax, [ebp + 8]
push eax
push ebx
call fcn.01001b16
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004212
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 2], ax
cmp dword [ebp - 0xc], 0
je 0x1004237
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
call fcn.01001b16
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004237
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 6], ax
cmp dword [ebp - 4], 0
je 0x1004410
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call fcn.01001b16
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004410
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jmp 0x1004410
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x58]
push eax
push ebx
call fcn.01002922
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call fcn.01002922
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
push ebx
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x10042b8
lea eax, [ebp - 0x44]
push eax
push 0
mov dword [ebp - 4], 1
call esi
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov ebx, 0x100155c
jmp 0x10042c0
mov ebx, 0x100155c
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0xc], 0
je 0x10042d8
inc dword [ebp - 4]
lea eax, [ebp - 0x44]
push eax
push 0
call esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x10042db
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x10], 0
je 0x10042e6
inc dword [ebp - 4]
jmp 0x10042e9
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x10], 0
je 0x10042f6
mov dword [ebp - 4], 3
mov eax, dword [ebp - 4]
dec eax
je 0x1004387
dec eax
je 0x100435a
dec eax
jne 0x10043a6
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call fcn.01001b16
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004410
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 8], ax
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
call fcn.01001b16
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004410
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0xa], ax
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
jmp 0x100438f
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call fcn.01001b16
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004410
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0xa], ax
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
jmp 0x100438f
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call fcn.01001b16
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004410
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0xc], ax
cmp dword [ebp - 8], 0
jne 0x1004410
cmp dword [ebp - 0x30], 0
je 0x10043e6
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [ecx + 8]
cmp ax, 0xc
jae 0x10043ca
add eax, 0xc
mov word [ecx + 8], ax
jmp 0x10043e6
jbe 0x10043e6
lea eax, [ebp - 0x58]
push eax
xor eax, eax
mov ax, word [0x100839c]
push 0x237
push eax
call fcn.01003273
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x1004410
mov eax, dword [ebp + 0xc]
cmp word [eax + 8], 0xc
jbe 0x1004410
lea eax, [ebp - 0x6c]
push eax
xor eax, eax
mov ax, word [0x100839c]
push 0x237
push eax
call fcn.01003273
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
and dword [ebp - 0x2c], 0
test ebx, ebx
jne 0x100416f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
je 0x1004448
cmp dword [ebp - 8], 0
jne 0x1004448
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1004448
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
leave
ret 0xc