Function at 0x300598ea
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.3002ecd0
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [eax + 8], edi
je 0x30059a1e
push eax
lea ecx, [ebp - 0x3dc]
call fcn.300592ed
push 0x2aa3
lea ecx, [ebp - 0xc8]
call fcn.3001b727
push edi
push 1
push 0x30150c70
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x74], 0x3002e198
call fcn.300216b5
lea ecx, [ebp - 0x5f0]
call fcn.3002259d
lea eax, [ebp - 0xc8]
push edi
push eax
lea ecx, [ebp - 0x3dc]
call fcn.30018b60
mov esi, eax
cmp esi, 0xffffffff
je 0x300599cb
push esi
lea eax, [ebp - 0x3dc]
push edi
push eax
lea ecx, [ebp - 0x5f0]
call fcn.30100234
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x5f0]
push eax
call fcn.30016785
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0x3dc]
add esi, eax
push esi
push edi
call fcn.300041c3
lea eax, [ebp - 0x3dc]
lea ecx, [ebp - 0x5f0]
push eax
call fcn.30016785
lea eax, [ebp - 0x5f0]
lea ecx, [ebp - 0x3dc]
push eax
call fcn.300ffb2c
jmp 0x30059953
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
cmp dword [ebp - 0x3d4], edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x10], edi
jle 0x30059a1e
mov ebx, 0x100
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x3dc]
lea ecx, [ebp - 0x3dc]
call dword [eax]
cmp dword [ebp - 0x10], edi
mov ax, word [eax]
mov dword [ebp - 8], edi
je 0x30059a23
cmp ax, 0x27
jne 0x30059ab6
mov dword [ebp - 0x10], edi
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x3d4]
jl 0x300599e7
pop edi
pop esi
pop ebx
leave
ret
cmp ax, 0x27
jne 0x30059a32
mov dword [ebp - 0x10], 1
jmp 0x30059a10
xor esi, esi
mov dword [ebp - 4], 0x30150af8
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x3dc]
push dword [eax]
call fcn.30100452
cmp eax, dword [ebp + 0xc]
je 0x30059ac4
add dword [ebp - 4], 4
inc esi
cmp dword [ebp - 4], 0x30150b28
jb 0x30059a3b
cmp dword [ebp - 8], edi
jne 0x30059a13
xor esi, esi
mov dword [ebp - 4], 0x30150b28
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x3dc]
push dword [eax]
call fcn.30100452
cmp eax, dword [ebp + 0xc]
je 0x30059b85
add dword [ebp - 4], 4
inc esi
cmp dword [ebp - 4], 0x30150b50
jb 0x30059a6f
cmp dword [ebp - 8], edi
jne 0x30059a13
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x3dc]
lea ecx, [ebp - 0x3dc]
call dword [eax]
mov ax, word [eax]
mov ecx, dword [ebp + 8]
push eax
call fcn.300167a5
jmp 0x30059a10
lea eax, [esi*4 + 0x30150af8]
push 5
mov dword [ebp - 8], eax
mov edi, str.dddd
mov eax, dword [eax]
pop ecx
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x30059b42
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp word [ebp - 0x1c], 0
jne 0x30059b39
push 0x30
pop eax
lea ecx, [ebp - 0x1c8]
push ebx
push ecx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x30059b19
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.300ffb6e
mov eax, dword [ebp - 8]
or ecx, 0xffffffff
mov dword [ebp - 8], 1
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add dword [ebp + 0xc], ecx
xor edi, edi
jmp 0x30059a61
movzx eax, word [ebp - 0x1c]
add eax, 0x29
jmp 0x30059af4
push 5
mov edi, str.MMMM
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x30059b6d
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x1c8]
push ebx
push eax
movzx eax, word [ebp - 0x1e]
add eax, 0x37
jmp 0x30059afc
lea ecx, [ebp - 0x1c8]
push ebx
push ecx
push eax
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
jmp 0x30059b06
lea eax, [ebp - 0x1c8]
lea esi, [esi*4 + 0x30150b28]
push ebx
push eax
push dword [esi]
push edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
cmp eax, edi
je 0x30059bb4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.300ffb6e
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 8], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
add dword [ebp + 0xc], ecx
xor edi, edi
jmp 0x30059a99