Function at 0x1003bf9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
xor eax, eax
push ebx
push esi
push edi
mov esi, 0x10014cc
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, 0x10014c4
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 [0x1007400]
test eax, eax
mov edi, 0x400
jne 0x1003c6a
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 0x1003c92
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x1007400]
test eax, eax
jne 0x1003c9d
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 0x1003cc7
push 9
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x6c]
push eax
call esi
add esp, 0xc
mov eax, dword [0x1007400]
test eax, eax
jne 0x1003cd2
mov eax, edi
push 9
lea ecx, [ebp - 0x874]
push ecx
push 0x29
push eax
call ebx
test eax, eax
jle 0x1003cf6
push 9
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x58]
push eax
call esi
add esp, 0xc
mov eax, dword [0x1007400]
test eax, eax
jne 0x1003d01
mov eax, edi
push 8
lea ecx, [ebp - 0x874]
push ecx
push 0x1e
push eax
call ebx
test eax, eax
jle 0x1003d25
push 8
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x44]
push eax
call esi
add esp, 0xc
mov eax, dword [0x1007400]
test eax, eax
jne 0x1003d30
mov eax, edi
push 8
lea ecx, [ebp - 0x874]
push ecx
push 0x1d
push eax
call ebx
test eax, eax
jle 0x1003d54
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, 0x10014bc
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 0x1004045
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 0x1003e8e
mov eax, dword [ebp - 0x28]
xor ecx, ecx
sub eax, ecx
mov dword [ebp - 4], ecx
je 0x1003df5
dec eax
je 0x1003de0
dec eax
jne 0x1003e5d
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 0x1003e14
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 0x1003e09
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 0x1003e38
push edi
lea eax, [ebp + 8]
push eax
push ebx
call fcn.010018c6
test eax, eax
mov dword [ebp - 8], eax
jne 0x1003e38
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 2], ax
cmp dword [ebp - 0xc], 0
je 0x1003e5d
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
call fcn.010018c6
test eax, eax
mov dword [ebp - 8], eax
jne 0x1003e5d
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 6], ax
cmp dword [ebp - 4], 0
je 0x1004036
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call fcn.010018c6
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004036
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jmp 0x1004036
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.010026d2
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call fcn.010026d2
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 0x1003ede
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, 0x10014b8
jmp 0x1003ee6
mov ebx, 0x10014b8
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0xc], 0
je 0x1003efe
inc dword [ebp - 4]
lea eax, [ebp - 0x44]
push eax
push 0
call esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x1003f01
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x10], 0
je 0x1003f0c
inc dword [ebp - 4]
jmp 0x1003f0f
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x10], 0
je 0x1003f1c
mov dword [ebp - 4], 3
mov eax, dword [ebp - 4]
dec eax
je 0x1003fad
dec eax
je 0x1003f80
dec eax
jne 0x1003fcc
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call fcn.010018c6
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004036
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.010018c6
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004036
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 0x1003fb5
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call fcn.010018c6
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004036
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 0x1003fb5
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call fcn.010018c6
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004036
mov ax, word [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0xc], ax
cmp dword [ebp - 8], 0
jne 0x1004036
cmp dword [ebp - 0x30], 0
je 0x100400c
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [ecx + 8]
cmp ax, 0xc
jae 0x1003ff0
add eax, 0xc
mov word [ecx + 8], ax
jmp 0x100400c
jbe 0x100400c
lea eax, [ebp - 0x58]
push eax
xor eax, eax
mov ax, word [0x10073dc]
push 0x237
push eax
call fcn.01002e99
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x1004036
mov eax, dword [ebp + 0xc]
cmp word [eax + 8], 0xc
jbe 0x1004036
lea eax, [ebp - 0x6c]
push eax
xor eax, eax
mov ax, word [0x10073dc]
push 0x237
push eax
call fcn.01002e99
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
and dword [ebp - 0x2c], 0
test ebx, ebx
jne 0x1003d95
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
je 0x100406e
cmp dword [ebp - 8], 0
jne 0x100406e
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x100406e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
leave
ret 0xc