Function at 0x3006837b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x3002223c]
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.30067fe3
test al, al
jne 0x30068922
mov eax, dword [ebp + 0x18]
cmp eax, 0xc
jg 0x300685c6
je 0x3006853a
mov ecx, eax
sub ecx, 0
je 0x300684ba
dec ecx
je 0x30068447
dec ecx
dec ecx
je 0x300684ba
dec ecx
jne 0x300685e1
mov eax, dword [esi]
mov ecx, dword [0x300cd69c]
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.30065fea
mov dword [ebp - 0x208], eax
jmp 0x30068914
call fcn.300691a0
test al, al
je 0x30068493
push dword [esi + 0xc]
call fcn.30068074
test al, al
je 0x30068493
mov eax, dword [esi]
push dword [ebp + 0xc]
imul eax, eax, 0x24
push dword [ebp - 0x20c]
mov ecx, dword [0x300cd69c]
push 2
push dword [eax + ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
mov dword [ebp - 0x208], eax
jbe 0x30068493
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
jmp 0x30068914
mov eax, dword [esi + 0xc]
mov ecx, dword [0x300cd69c]
mov dword [ebp - 0x218], eax
mov eax, dword [esi]
imul eax, eax, 0x24
mov ebx, dword [eax + ecx + 4]
mov dword [ebp - 0x214], 0x300220bc
jmp 0x30068593
mov ebx, dword [esi]
push ebx
call fcn.30064ff9
test al, al
jne 0x30068922
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.300670df
test eax, eax
mov dword [edi], eax
jl 0x300684f8
mov ecx, dword [ebp - 0x228]
test ecx, ecx
jne 0x300684fe
mov ecx, dword [ebp - 0x21c]
cmp eax, 0x8007000e
je 0x30068914
cmp dword [ebp + 0x18], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 0x300220e4
je 0x3006852c
mov dword [ebp - 0x214], 0x30022108
mov eax, dword [0x300cd69c]
imul ecx, ecx, 0x24
mov ebx, dword [eax + ecx + 4]
jmp 0x30068593
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x220], 0
mov dword [ebp - 0x214], 0x30022098
jne 0x3006856e
lea eax, [ebp - 0x220]
push eax
push dword [esi]
call fcn.3006701c
test eax, eax
mov dword [edi], eax
jl 0x30068928
push edi
push 0
push 5
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x220]
call fcn.3006634c
test eax, eax
je 0x30068914
lea ebx, [ebp - 0x104]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x21c], ecx
and dword [ebp - 0x21c], 0x7100
je 0x300686db
xor eax, eax
test dword [eax*8 + 0x30021d94], ecx
jne 0x300686b7
inc eax
cmp eax, 4
jl 0x300685ae
jmp 0x300686db
mov ecx, eax
sub ecx, 0xd
je 0x30068543
sub ecx, 0x1c
je 0x3006866b
dec ecx
je 0x30068674
imul eax, eax, 0x14
mov ecx, dword [eax + 0x300213e0]
test cl, 0x10
mov dword [ebp - 0x228], eax
je 0x30068601
mov dword [ebp - 0x214], 0x30022064
jmp 0x30068660
test cl, 0x20
je 0x30068660
test ebx, ebx
jne 0x3006862a
lea eax, [ebp - 0x224]
push eax
push 1
push dword [esi]
call fcn.300667e9
test eax, eax
mov dword [edi], eax
jl 0x30068928
mov ebx, dword [ebp - 0x224]
mov eax, dword [0x300cd6d0]
push 0
shl ebx, 4
push dword [ebx + eax + 4]
lea eax, [ebp - 0x104]
push 0x7f
push eax
call fcn.30068dda
test al, al
je 0x30068914
lea eax, [ebp - 0x104]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x228]
mov ebx, dword [eax + 0x300213d4]
jmp 0x30068593
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
test ebx, ebx
mov dword [ebp - 0x214], 0x3002212c
jne 0x300686a6
lea eax, [ebp - 0x224]
push eax
push 1
push dword [ebp - 0x21c]
call fcn.300667e9
test eax, eax
mov dword [edi], eax
jl 0x30068928
mov ebx, dword [ebp - 0x224]
mov eax, dword [0x300cd6d0]
shl ebx, 4
mov ebx, dword [ebx + eax + 4]
jmp 0x30068593
push ebx
push dword [eax*8 + 0x30021d98]
lea eax, [ebp - 0x204]
push 0x7f
push eax
call fcn.30068e65
test al, al
je 0x30068914
lea ebx, [ebp - 0x204]
lea eax, [ebp - 0x254]
push eax
push 0
push ebx
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.30067e2e
test eax, eax
jl 0x30068725
mov eax, dword [ebp - 0x254]
mov eax, dword [eax]
test eax, eax
mov ecx, dword [ebp + 0x18]
jne 0x3006876e
mov edx, ecx
imul edx, edx, 0x14
test word [edx + 0x300213e0], 0x4000
jne 0x3006876e
lea eax, [ebp - 0x254]
push eax
call fcn.30067e9b
cmp dword [ebp - 0x21c], 0
jne 0x30068914
mov eax, dword [ebp + 0x18]
xor edx, edx
sub eax, edx
je 0x300688c1
push 3
pop ecx
sub eax, ecx
je 0x300688c1
dec eax
dec eax
je 0x30068418
sub eax, ecx
je 0x30068862
sub eax, ecx
je 0x30068838
sub eax, ecx
je 0x300687d8
sub eax, 4
jmp 0x300688b4
imul ecx, ecx, 0x14
mov ecx, dword [ecx + 0x300213e0]
test cx, 0x2000
jne 0x300688ec
test cx, cx
jns 0x300687a3
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.30068ee8
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
jmp 0x30068902
test cx, 0x4000
je 0x30068908
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.300692ed
jmp 0x30068902
cmp dword [ebp - 0x220], edx
je 0x30068800
push edi
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
push dword [ebp - 0x220]
call fcn.3006634c
jmp 0x300688a7
mov eax, dword [esi]
mov ecx, dword [0x300cd69c]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.30068fbe
mov eax, dword [ebp - 0x234]
test eax, eax
jbe 0x300688ad
push edi
push 4
mov ecx, dword [ebp - 0x23c]
lea eax, [ecx + eax*2]
push eax
jmp 0x30068893
mov eax, dword [esi]
mov ecx, dword [0x300cd69c]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.30068fbe
mov eax, dword [ebp - 0x230]
test eax, eax
jbe 0x300688ad
push edi
push 2
jmp 0x3006882c
mov eax, dword [esi]
mov ecx, dword [0x300cd69c]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.30068fbe
cmp dword [ebp - 0x238], 0
jbe 0x300688ad
push edi
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.3006830d
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
jne 0x30068914
push edi
push 0x300049c8
jmp 0x30068428
lea eax, [ebp - 0x254]
push eax
push edx
push ebx
push 0x300220bc
push dword [ebp - 0x218]
call fcn.30067e2e
test eax, eax
mov dword [edi], eax
jl 0x30068928
mov eax, dword [ebp - 0x254]
mov eax, dword [eax]
test eax, eax
je 0x30068908
push edi
push eax
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.30065fea
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x254]
push eax
call fcn.30067e9b
cmp dword [edi], 0
jl 0x30068928
cmp dword [ebp - 0x208], 0
jne 0x30068928
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.3006961b
leave
ret 0x1c