Function at 0x300684d6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x300222cc]
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.3006813e
test al, al
jne 0x30068a7d
mov eax, dword [ebp + 0x18]
cmp eax, 0xc
jg 0x30068721
je 0x30068695
mov ecx, eax
sub ecx, 0
je 0x30068615
dec ecx
je 0x300685a2
dec ecx
dec ecx
je 0x30068615
dec ecx
jne 0x3006873c
mov eax, dword [esi]
mov ecx, dword [0x300d731c]
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.30066148
mov dword [ebp - 0x208], eax
jmp 0x30068a6f
call fcn.300692fb
test al, al
je 0x300685ee
push dword [esi + 0xc]
call fcn.300681cf
test al, al
je 0x300685ee
mov eax, dword [esi]
push dword [ebp + 0xc]
imul eax, eax, 0x24
push dword [ebp - 0x20c]
mov ecx, dword [0x300d731c]
push 2
push dword [eax + ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
mov dword [ebp - 0x208], eax
jbe 0x300685ee
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
jmp 0x30068a6f
mov eax, dword [esi + 0xc]
mov ecx, dword [0x300d731c]
mov dword [ebp - 0x218], eax
mov eax, dword [esi]
imul eax, eax, 0x24
mov ebx, dword [eax + ecx + 4]
mov dword [ebp - 0x214], 0x3002214c
jmp 0x300686ee
mov ebx, dword [esi]
push ebx
call fcn.30065157
test al, al
jne 0x30068a7d
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.3006723a
test eax, eax
mov dword [edi], eax
jl 0x30068653
mov ecx, dword [ebp - 0x228]
test ecx, ecx
jne 0x30068659
mov ecx, dword [ebp - 0x21c]
cmp eax, 0x8007000e
je 0x30068a6f
cmp dword [ebp + 0x18], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 0x30022174
je 0x30068687
mov dword [ebp - 0x214], 0x30022198
mov eax, dword [0x300d731c]
imul ecx, ecx, 0x24
mov ebx, dword [eax + ecx + 4]
jmp 0x300686ee
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x220], 0
mov dword [ebp - 0x214], 0x30022128
jne 0x300686c9
lea eax, [ebp - 0x220]
push eax
push dword [esi]
call fcn.30067177
test eax, eax
mov dword [edi], eax
jl 0x30068a83
push edi
push 0
push 5
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x220]
call fcn.300664aa
test eax, eax
je 0x30068a6f
lea ebx, [ebp - 0x104]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x21c], ecx
and dword [ebp - 0x21c], 0x7100
je 0x30068836
xor eax, eax
test dword [eax*8 + 0x30021e24], ecx
jne 0x30068812
inc eax
cmp eax, 4
jl 0x30068709
jmp 0x30068836
mov ecx, eax
sub ecx, 0xd
je 0x3006869e
sub ecx, 0x1c
je 0x300687c6
dec ecx
je 0x300687cf
imul eax, eax, 0x14
mov ecx, dword [eax + 0x30021470]
test cl, 0x10
mov dword [ebp - 0x228], eax
je 0x3006875c
mov dword [ebp - 0x214], 0x300220f4
jmp 0x300687bb
test cl, 0x20
je 0x300687bb
test ebx, ebx
jne 0x30068785
lea eax, [ebp - 0x224]
push eax
push 1
push dword [esi]
call fcn.30066947
test eax, eax
mov dword [edi], eax
jl 0x30068a83
mov ebx, dword [ebp - 0x224]
mov eax, dword [0x300d7350]
push 0
shl ebx, 4
push dword [ebx + eax + 4]
lea eax, [ebp - 0x104]
push 0x7f
push eax
call fcn.30068f35
test al, al
je 0x30068a6f
lea eax, [ebp - 0x104]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x228]
mov ebx, dword [eax + 0x30021464]
jmp 0x300686ee
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x218], eax
test ebx, ebx
mov dword [ebp - 0x214], 0x300221bc
jne 0x30068801
lea eax, [ebp - 0x224]
push eax
push 1
push dword [ebp - 0x21c]
call fcn.30066947
test eax, eax
mov dword [edi], eax
jl 0x30068a83
mov ebx, dword [ebp - 0x224]
mov eax, dword [0x300d7350]
shl ebx, 4
mov ebx, dword [ebx + eax + 4]
jmp 0x300686ee
push ebx
push dword [eax*8 + 0x30021e28]
lea eax, [ebp - 0x204]
push 0x7f
push eax
call fcn.30068fc0
test al, al
je 0x30068a6f
lea ebx, [ebp - 0x204]
lea eax, [ebp - 0x254]
push eax
push 0
push ebx
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.30067f89
test eax, eax
jl 0x30068880
mov eax, dword [ebp - 0x254]
mov eax, dword [eax]
test eax, eax
mov ecx, dword [ebp + 0x18]
jne 0x300688c9
mov edx, ecx
imul edx, edx, 0x14
test word [edx + 0x30021470], 0x4000
jne 0x300688c9
lea eax, [ebp - 0x254]
push eax
call fcn.30067ff6
cmp dword [ebp - 0x21c], 0
jne 0x30068a6f
mov eax, dword [ebp + 0x18]
xor edx, edx
sub eax, edx
je 0x30068a1c
push 3
pop ecx
sub eax, ecx
je 0x30068a1c
dec eax
dec eax
je 0x30068573
sub eax, ecx
je 0x300689bd
sub eax, ecx
je 0x30068993
sub eax, ecx
je 0x30068933
sub eax, 4
jmp 0x30068a0f
imul ecx, ecx, 0x14
mov ecx, dword [ecx + 0x30021470]
test cx, 0x2000
jne 0x30068a47
test cx, cx
jns 0x300688fe
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.30069043
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
jmp 0x30068a5d
test cx, 0x4000
je 0x30068a63
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.30069448
jmp 0x30068a5d
cmp dword [ebp - 0x220], edx
je 0x3006895b
push edi
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
push dword [ebp - 0x220]
call fcn.300664aa
jmp 0x30068a02
mov eax, dword [esi]
mov ecx, dword [0x300d731c]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.30069119
mov eax, dword [ebp - 0x234]
test eax, eax
jbe 0x30068a08
push edi
push 4
mov ecx, dword [ebp - 0x23c]
lea eax, [ecx + eax*2]
push eax
jmp 0x300689ee
mov eax, dword [esi]
mov ecx, dword [0x300d731c]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.30069119
mov eax, dword [ebp - 0x230]
test eax, eax
jbe 0x30068a08
push edi
push 2
jmp 0x30068987
mov eax, dword [esi]
mov ecx, dword [0x300d731c]
imul eax, eax, 0x24
push dword [eax + ecx + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.30069119
cmp dword [ebp - 0x238], 0
jbe 0x30068a08
push edi
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.30068468
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
jne 0x30068a6f
push edi
push 0x300049f8
jmp 0x30068583
lea eax, [ebp - 0x254]
push eax
push edx
push ebx
push 0x3002214c
push dword [ebp - 0x218]
call fcn.30067f89
test eax, eax
mov dword [edi], eax
jl 0x30068a83
mov eax, dword [ebp - 0x254]
mov eax, dword [eax]
test eax, eax
je 0x30068a63
push edi
push eax
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x20c]
call fcn.30066148
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x254]
push eax
call fcn.30067ff6
cmp dword [edi], 0
jl 0x30068a83
cmp dword [ebp - 0x208], 0
jne 0x30068a83
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.30069776
leave
ret 0x1c