Function at 0x40c9d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fa2d
mov eax, dword fs:[0]
push eax
sub esp, 0x610
mov eax, dword [0x4958b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x574], ecx
mov ecx, dword [ebp - 0x574]
add ecx, 0xc
call fcn.00419180
movzx eax, al
test eax, eax
je 0x40ca1b
jmp 0x40d2db
push str.Index_:_
lea ecx, [ebp - 0x438]
call fcn.00418330
mov dword [ebp - 4], 0
push str._CastingStation__CastEngine::GetAudioStreamInfo
push 3
call fcn.00412e80
add esp, 8
lea ecx, [ebp - 0x570]
call fcn.00417e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x570]
mov dword [ebp - 0x5dc], ecx
mov ecx, dword [ebp - 0x574]
add ecx, 0xc
call fcn.004194d0
mov dword [ebp - 0x58c], eax
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x618], esp
lea edx, [ebp - 0x5dc]
push edx
call fcn.00411fa0
mov dword [ebp - 0x61c], eax
push 0x47974c
mov eax, dword [ebp - 0x58c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58c]
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x5c8], eax
mov ecx, dword [ebp - 0x5c8]
mov dword [ebp - 0x57c], ecx
cmp dword [ebp - 0x57c], 0
jge 0x40cb04
push 0x451
push 0x478a4c
mov edx, dword [ebp - 0x57c]
push edx
push 0x478aa0
call fcn.00405190
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x570]
call fcn.004189e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00418ac0
jmp 0x40d2db
lea ecx, [ebp - 0x570]
call fcn.00419180
movzx eax, al
test eax, eax
je 0x40cb3c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x570]
call fcn.004189e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00418ac0
jmp 0x40d2db
lea ecx, [ebp - 0x560]
call fcn.00418210
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x570]
call fcn.004194d0
mov dword [ebp - 0x580], eax
lea ecx, [ebp - 0x560]
push ecx
push 0x47697c
mov edx, dword [ebp - 0x580]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x580]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x588], eax
cmp dword [ebp - 0x588], 0
jge 0x40cbdd
push 0x455
push 0x478d68
mov eax, dword [ebp - 0x588]
push eax
push str.FAILED:_0x_08x____s:_d_configer__Get_cast::PARAM_UINT32_AUDIO_STREAM__any__n
call fcn.00405190
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x560]
call fcn.00418c40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x570]
call fcn.004189e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00418ac0
jmp 0x40d2db
lea ecx, [ebp - 0x560]
call fcn.004129c0
push eax
lea ecx, [ebp - 0x468]
push ecx
call fcn.004205b0
add esp, 8
mov dword [ebp - 0x5f0], eax
mov edx, dword [ebp - 0x5f0]
mov dword [ebp - 0x5d0], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x5d0]
push eax
lea ecx, [ebp - 0x438]
call fcn.00419a70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x468]
call fcn.00418ac0
lea ecx, [ebp - 0x560]
call fcn.004129c0
push eax
push str._CastingStation__CastEngine::GetAudioStreamInfo_current_index___d
push 3
call fcn.00412e80
add esp, 0xc
lea ecx, [ebp - 0x570]
call fcn.004194d0
mov dword [ebp - 0x590], eax
lea ecx, [ebp - 0x560]
push ecx
push 0x47698c
mov edx, dword [ebp - 0x590]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x590]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x598], eax
cmp dword [ebp - 0x598], 0
jge 0x40ccdc
push 0x459
push 0x4790cc
mov eax, dword [ebp - 0x598]
push eax
push str.FAILED:_0x_08x____s:_d_configer__Get_cast::PARAM_UINT32_AUDIO_STREAM_COUNT__any__n
call fcn.00405190
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x560]
call fcn.00418c40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x570]
call fcn.004189e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00418ac0
jmp 0x40d2db
lea ecx, [ebp - 0x560]
call fcn.004129c0
mov dword [ebp - 0x5a0], eax
push str.___Count_:_
lea ecx, [ebp - 0x438]
call fcn.00419a90
mov ecx, dword [ebp - 0x5a0]
push ecx
lea edx, [ebp - 0x4e0]
push edx
call fcn.004205b0
add esp, 8
mov dword [ebp - 0x5e8], eax
mov eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5a8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5a8]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00419a70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4e0]
call fcn.00418ac0
mov dx, word [0x478b1c]
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0044e250
add esp, 0xc
mov cx, word [0x478bbc]
mov word [ebp - 0x420], cx
push 0x206
push 0
lea edx, [ebp - 0x41e]
push edx
call fcn.0044e250
add esp, 0xc
push 0x478c2c
lea ecx, [ebp - 0x450]
call fcn.00418330
mov byte [ebp - 4], 5
mov dword [ebp - 0x564], 0
jmp 0x40cdc1
mov eax, dword [ebp - 0x564]
add eax, 1
mov dword [ebp - 0x564], eax
mov ecx, dword [ebp - 0x564]
cmp ecx, dword [ebp - 0x5a0]
jae 0x40d260
lea ecx, [ebp - 0x614]
call fcn.00418560
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x564]
mov dword [ebp - 0x614], edx
lea eax, [ebp - 0x614]
mov dword [ebp - 0x5ac], eax
lea ecx, [ebp - 0x5ac]
push ecx
lea ecx, [ebp - 0x560]
call fcn.00412880
lea ecx, [ebp - 0x570]
call fcn.004194d0
mov dword [ebp - 0x59c], eax
lea edx, [ebp - 0x560]
push edx
push 0x47699c
mov eax, dword [ebp - 0x59c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x59c]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x584], eax
cmp dword [ebp - 0x584], 0
jge 0x40cebc
push 0x467
push 0x479450
mov ecx, dword [ebp - 0x584]
push ecx
push str.FAILED:_0x_08x____s:_d_configer__Get_cast::PARAM_PTR_AUDIO_STREAM_PROPERTY__any__n
call fcn.00405190
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x614]
call fcn.00418c80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x450]
call fcn.00418ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x560]
call fcn.00418c40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x570]
call fcn.004189e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00418ac0
jmp 0x40d2db
push 0x478f0c
lea edx, [ebp - 0x604]
push edx
lea eax, [ebp - 0x480]
push eax
call fcn.0041b390
add esp, 8
mov dword [ebp - 0x5b4], eax
mov ecx, dword [ebp - 0x5b4]
call fcn.0041d550
push eax
call int.0044fb44
add esp, 8
test eax, eax
jne 0x40cf01
mov dword [ebp - 0x594], 1
jmp 0x40cf0b
mov dword [ebp - 0x594], 0
mov cl, byte [ebp - 0x594]
mov byte [ebp - 0x565], cl
lea ecx, [ebp - 0x480]
call fcn.00418ac0
movzx edx, byte [ebp - 0x565]
test edx, edx
je 0x40cfb2
mov eax, dword [ebp - 0x564]
add eax, 1
push eax
lea ecx, [ebp - 0x540]
push ecx
call fcn.004205b0
add esp, 8
mov dword [ebp - 0x5bc], eax
mov edx, dword [ebp - 0x5bc]
mov dword [ebp - 0x5c4], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x5c4]
push eax
push str.Audio
lea ecx, [ebp - 0x498]
push ecx
call fcn.00412b50
add esp, 0xc
mov dword [ebp - 0x5cc], eax
mov edx, dword [ebp - 0x5cc]
push edx
lea ecx, [ebp - 0x450]
call fcn.00419000
lea ecx, [ebp - 0x498]
call fcn.00418ac0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x540]
call fcn.00418ac0
jmp 0x40d0bd
mov dword [ebp - 0x578], 0
lea ecx, [ebp - 0x559]
call fcn.00405430
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x604]
call dword [sym.imp.cast.dll_public:_char_const____thiscall_cyberlink::String::CStr_void_const]
push eax
lea ecx, [ebp - 0x559]
call fcn.00405700
mov dword [ebp - 0x578], eax
push 0x104
lea eax, [ebp - 0x420]
push eax
push 2
mov ecx, dword [ebp - 0x578]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x5d4], eax
cmp dword [ebp - 0x5d4], 0
jne 0x40d04e
lea edx, [ebp - 0x604]
push edx
lea eax, [ebp - 0x4b0]
push eax
call fcn.0041b390
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00419000
lea ecx, [ebp - 0x4b0]
call fcn.00418ac0
jmp 0x40d0ae
mov dword [ebp - 0x5e4], 0
lea edx, [ebp - 0x5e4]
push edx
push 0x4790ec
lea eax, [ebp - 0x420]
push eax
call fcn.0044fb82
add esp, 0xc
mov dword [ebp - 0x5ec], eax
mov ecx, dword [ebp - 0x5ec]
push ecx
lea ecx, [ebp - 0x4c8]
call fcn.00418330
mov dword [ebp - 0x5f4], eax
mov edx, dword [ebp - 0x5f4]
push edx
lea ecx, [ebp - 0x450]
call fcn.00419000
lea ecx, [ebp - 0x4c8]
call fcn.00418ac0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x559]
call fcn.00405440
cmp dword [ebp - 0x564], 0
jne 0x40d13e
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x4f8]
push ecx
call fcn.0041b390
add esp, 8
mov dword [ebp - 0x5e0], eax
mov ecx, dword [ebp - 0x5e0]
call fcn.0041d550
push eax
lea ecx, [ebp - 0x450]
call fcn.0041d550
push eax
mov edx, dword [ebp - 0x564]
push edx
push str.AudioInfo
push str.____s_:__d_:__s_:__s
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.0044cc3d
add esp, 0x1c
lea ecx, [ebp - 0x4f8]
call fcn.00418ac0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00419a90
jmp 0x40d1af
lea edx, [ebp - 0x610]
push edx
lea eax, [ebp - 0x528]
push eax
call fcn.0041b390
add esp, 8
mov dword [ebp - 0x5d8], eax
mov ecx, dword [ebp - 0x5d8]
call fcn.0041d550
push eax
lea ecx, [ebp - 0x450]
call fcn.0041d550
push eax
mov ecx, dword [ebp - 0x564]
push ecx
push str.____d_:__s_:__s
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.0044cc3d
add esp, 0x18
lea ecx, [ebp - 0x528]
call fcn.00418ac0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00419a90
lea ecx, [ebp - 0x604]
push ecx
lea edx, [ebp - 0x510]
push edx
call fcn.0041b390
add esp, 8
mov dword [ebp - 0x5b0], eax
mov eax, dword [ebp - 0x5b0]
mov dword [ebp - 0x5f8], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x5f8]
call fcn.0041d550
push eax
lea ecx, [ebp - 0x610]
push ecx
lea edx, [ebp - 0x558]
push edx
call fcn.0041b390
add esp, 8
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebp - 0x5b8]
mov dword [ebp - 0x5c0], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x5c0]
call fcn.0041d550
push eax
push str._CastingStation__CastEngine::GetAudioStreamInfo_audio_stream_name___s__audio_stream_code___s
push 3
call fcn.00412e80
add esp, 0x10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x558]
call fcn.00418ac0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x510]
call fcn.00418ac0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x614]
call fcn.00418c80
jmp 0x40cdb2
lea ecx, [ebp - 0x438]
call fcn.0041d550
push eax
push str._CastingStation__CastEngine::GetAudioStreamInfo_audio_stream_info___s
push 3
call fcn.00412e80
add esp, 0xc
push 0x479988
lea ecx, [ebp - 0x438]
call fcn.0041d550
push eax
push str.UpdateAudioStream
mov ecx, dword [ebp - 0x574]
call fcn.004065e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x450]
call fcn.00418ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x560]
call fcn.00418c40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x570]
call fcn.004189e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00418ac0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c9f3
mov esp, ebp
pop ebp
ret