Function at 0x30135931
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, dword [esi + 8]
mov dword [ebp - 0x20c], eax
mov eax, dword [esi]
xor edx, edx
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], eax
mov eax, dword [esi + 4]
mov dword [ecx], edx
push esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x208], edx
mov dword [edi], edx
call fcn.30135540
test al, al
jne 0x30135ed8
mov eax, dword [ebp + 0x18]
cmp eax, 0xc
jg 0x30135b7c
je 0x30135af0
mov ecx, eax
sub ecx, 0
je 0x30135a70
dec ecx
je 0x301359fd
dec ecx
dec ecx
je 0x30135a70
dec ecx
jne 0x30135b97
mov eax, dword [esi]
mov ecx, dword [0x3027f1d0]
imul eax, eax, 0x24
push edi
push dword [eax + ecx + 4]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.301341c5
mov dword [ebp - 0x208], eax
jmp 0x30135eca
call fcn.301366c6
test al, al
je 0x30135a49
push dword [esi + 0xc]
call fcn.301355d1
test al, al
je 0x30135a49
mov eax, dword [esi]
push dword [ebp + 0xc]
imul eax, eax, 0x24
push dword [ebp - 0x20c]
mov ecx, dword [0x3027f1d0]
push 2
push dword [eax + ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
mov dword [ebp - 0x208], eax
jbe 0x30135a49
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
jmp 0x30135eca
mov eax, dword [esi + 0xc]
mov ecx, dword [0x3027f1d0]
mov dword [ebp - 0x218], eax
mov eax, dword [esi]
imul eax, eax, 0x24
mov ebx, dword [eax + ecx + 4]
mov dword [ebp - 0x214], 0x30024444
jmp 0x30135b49
mov ebx, dword [esi]
push ebx
call fcn.30132fe2
test al, al
jne 0x30135ed8
and dword [ebp - 0x228], 0
lea eax, [ebp - 0x228]
push eax
xor eax, eax
cmp dword [ebp + 0x18], eax
setne al
inc eax
push eax
push ebx
call fcn.30135324
test eax, eax
mov dword [edi], eax
jl 0x30135aae
mov ecx, dword [ebp - 0x228]
test ecx, ecx
jne 0x30135ab4
mov ecx, dword [ebp - 0x21c]
cmp eax, 0x8007000e
je 0x30135eca
cmp dword [ebp + 0x18], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 0x3002446c
je 0x30135ae2
mov dword [ebp - 0x214], 0x30024490
mov eax, dword [0x3027f1d0]
imul ecx, ecx, 0x24
mov ebx, dword [eax + ecx + 4]
jmp 0x30135b49
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x220], 0
mov dword [ebp - 0x214], 0x30024420
jne 0x30135b24
lea eax, [ebp - 0x220]
push eax
push dword [esi]
call fcn.30135261
test eax, eax
mov dword [edi], eax
jl 0x30135ede
push edi
push 0
push 5
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x220]
call fcn.30134527
test eax, eax
je 0x30135eca
lea ebx, [ebp - 0x104]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x21c], ecx
and dword [ebp - 0x21c], 0x7100
je 0x30135c91
xor eax, eax
test dword [eax*8 + 0x30024064], ecx
jne 0x30135c6d
inc eax
cmp eax, 4
jl 0x30135b64
jmp 0x30135c91
mov ecx, eax
sub ecx, 0xd
je 0x30135af9
sub ecx, 0x1c
je 0x30135c21
dec ecx
je 0x30135c2a
imul eax, eax, 0x14
mov ecx, dword [eax + 0x300236b0]
test cl, 0x10
mov dword [ebp - 0x228], eax
je 0x30135bb7
mov dword [ebp - 0x214], 0x300243ec
jmp 0x30135c16
test cl, 0x20
je 0x30135c16
test ebx, ebx
jne 0x30135be0
lea eax, [ebp - 0x224]
push eax
push 1
push dword [esi]
call fcn.30134a31
test eax, eax
mov dword [edi], eax
jl 0x30135ede
mov ebx, dword [ebp - 0x224]
mov eax, dword [0x3027f218]
push 0
shl ebx, 4
push dword [ebx + eax + 4]
lea eax, [ebp - 0x104]
push 0x7f
push eax
call fcn.30136a1e
test al, al
je 0x30135eca
lea eax, [ebp - 0x104]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x228]
mov ebx, dword [eax + 0x300236a4]
jmp 0x30135b49
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
test ebx, ebx
mov dword [ebp - 0x214], 0x300244b4
jne 0x30135c5c
lea eax, [ebp - 0x224]
push eax
push 1
push dword [ebp - 0x21c]
call fcn.30134a31
test eax, eax
mov dword [edi], eax
jl 0x30135ede
mov ebx, dword [ebp - 0x224]
mov eax, dword [0x3027f218]
shl ebx, 4
mov ebx, dword [ebx + eax + 4]
jmp 0x30135b49
push ebx
push dword [eax*8 + 0x30024068]
lea eax, [ebp - 0x204]
push 0x7f
push eax
call fcn.30136aa9
test al, al
je 0x30135eca
lea ebx, [ebp - 0x204]
lea eax, [ebp - 0x254]
push eax
push 0
push ebx
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.30132be0
test eax, eax
jl 0x30135cdb
mov eax, dword [ebp - 0x254]
mov eax, dword [eax]
test eax, eax
mov ecx, dword [ebp + 0x18]
jne 0x30135d24
mov edx, ecx
imul edx, edx, 0x14
test word [edx + 0x300236b0], 0x4000
jne 0x30135d24
lea eax, [ebp - 0x254]
push eax
call fcn.30132c4d
cmp dword [ebp - 0x21c], 0
jne 0x30135eca
mov eax, dword [ebp + 0x18]
xor edx, edx
sub eax, edx
je 0x30135e77
push 3
pop ecx
sub eax, ecx
je 0x30135e77
dec eax
dec eax
je 0x301359ce
sub eax, ecx
je 0x30135e18
sub eax, ecx
je 0x30135dee
sub eax, ecx
je 0x30135d8e
sub eax, 4
jmp 0x30135e6a
imul ecx, ecx, 0x14
mov ecx, dword [ecx + 0x300236b0]
test cx, 0x2000
jne 0x30135ea2
test cx, cx
jns 0x30135d59
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.3013640e
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
jmp 0x30135eb8
test cx, 0x4000
je 0x30135ebe
push edi
push 0
push 0
push dword [ebp - 0x254]
push dword [ebp - 0x250]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.30136813
jmp 0x30135eb8
cmp dword [ebp - 0x220], edx
je 0x30135db6
push edi
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
push dword [ebp - 0x220]
call fcn.30134527
jmp 0x30135e5d
mov eax, dword [esi]
mov ecx, dword [0x3027f1d0]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.301364e4
mov eax, dword [ebp - 0x234]
test eax, eax
jbe 0x30135e63
push edi
push 4
mov ecx, dword [ebp - 0x23c]
lea eax, [ecx + eax*2]
push eax
jmp 0x30135e49
mov eax, dword [esi]
mov ecx, dword [0x3027f1d0]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.301364e4
mov eax, dword [ebp - 0x230]
test eax, eax
jbe 0x30135e63
push edi
push 2
jmp 0x30135de2
mov eax, dword [esi]
mov ecx, dword [0x3027f1d0]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.301364e4
cmp dword [ebp - 0x238], 0
jbe 0x30135e63
push edi
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.301358c3
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
jne 0x30135eca
push edi
push 0x30002678
jmp 0x301359de
lea eax, [ebp - 0x254]
push eax
push edx
push ebx
push 0x30024444
push dword [ebp - 0x218]
call fcn.30132be0
test eax, eax
mov dword [edi], eax
jl 0x30135ede
mov eax, dword [ebp - 0x254]
mov eax, dword [eax]
test eax, eax
je 0x30135ebe
push edi
push eax
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.301341c5
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x254]
push eax
call fcn.30132c4d
cmp dword [edi], 0
jl 0x30135ede
cmp dword [ebp - 0x208], 0
jne 0x30135ede
mov dword [edi], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 0x1c