Function at 0x46f5b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x557bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x58829c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x58829c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [0x58d464]
mov edi, dword [sym.imp.msvcr120.dll_void____cdecl_operator_new_unsigned_int_]
push 0x3c
call edi
add esp, 4
test eax, eax
je 0x46f63e
mov dword [eax], 0x577420
mov dword [eax + 4], 0x5752f0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x20], 0x5752f0
mov dword [eax + 0x38], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x30], 0
jmp 0x46f640
xor eax, eax
mov ecx, eax
mov dword [esi + 0x44], eax
call fcn.00541740
mov ecx, esi
call fcn.0046f350
mov eax, dword [esi + 0x154]
push str.Loading_controls
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x154]
push str.Loading_controls_end
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x154]
push str.Gui_update
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ecx, dword [esi + 0x1e4]
add esp, 0x18
call fcn.00490680
mov eax, dword [esi + 0x154]
push str.Loading_profiles
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x568a60
mov word [ecx], ax
call fcn.00444990
mov ecx, dword [esi + 0x54]
call fcn.004c74d0
mov eax, dword [esi + 0x154]
push str.Loading_profiles_end
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x154]
push str.SetFocus
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x154]
push str.SetFocus_end
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ecx, dword [esi + 0x150]
add esp, 0x14
mov eax, dword [ecx]
mov dword [esp], 0x3f19999a
call dword [eax + 0x14]
push 0x30
call edi
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x40], 0
test ebx, ebx
je 0x46f741
push 1
mov ecx, ebx
call dword [sym.imp.libtheoraplayer.dll_public:_void___thiscall_TheoraVideoManager::constructor_int_]
mov dword [ebx], 0x56aea8
jmp 0x46f743
xor ebx, ebx
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esi + 0x154]
mov dword [esi + 0x14bb0], ebx
push str.Test_for_first_launch
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov edx, dword [0x58d464]
lea ecx, [esp + 0x20]
push str.profiles.xml
lea edx, [edx + 0x128]
call fcn.00443900
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x46f787
mov eax, dword [eax]
push eax
call dword [sym.imp.shlwapi.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [esp + 0x2c], 8
jb 0x46f7a7
push dword [esp + 0x18]
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
push 0x2c
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call edi
add esp, 4
mov ecx, eax
test bl, bl
je 0x46f81f
test ecx, ecx
je 0x46f7ff
mov dword [ecx], 0x570c70
mov dword [ecx + 4], vtable.phVector2d.0
mov word [ecx + 0x20], 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0x437f0000
mov word [ecx + 0x18], 0
mov dword [ecx + 0x24], 0
jmp 0x46f801
xor ecx, ecx
mov eax, dword [0x58d464]
mov dword [eax + 0x1423c], ecx
mov ecx, dword [0x58d464]
mov ecx, dword [ecx + 0x1423c]
call fcn.004be3c0
jmp 0x46f882
test ecx, ecx
je 0x46f853
mov dword [ecx], 0x570c70
mov dword [ecx + 4], vtable.phVector2d.0
mov word [ecx + 0x20], 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0x437f0000
mov word [ecx + 0x18], 0
mov dword [ecx + 0x24], 0
jmp 0x46f855
xor ecx, ecx
mov eax, dword [0x58d464]
mov dword [eax + 0x1423c], ecx
mov ecx, dword [0x58d464]
mov ecx, dword [ecx + 0x1423c]
call fcn.004be3c0
mov ecx, dword [0x58d464]
mov ecx, dword [ecx + 0x1423c]
call fcn.004be4b0
mov eax, dword [esi + 0x154]
push str.Test_for_firs_launch_end
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x154]
push str.Set_OptMenu_params
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x154]
push str.Set_OptMenu_params_end
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x154]
push str.Loading_Ballance
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x154]
push str.Loading_Ballance_end
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ecx, dword [esi + 0x14b90]
add esp, 0x28
call fcn.00533620
mov ecx, dword [esi + 0x150]
push ecx
mov dword [esp], 0x40c00000
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0x19dc
call edi
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], 1
test eax, eax
je 0x46f91b
mov ecx, eax
call fcn.004c1d70
jmp 0x46f91d
xor eax, eax
mov dword [esp + 0x40], 0xffffffff
mov ecx, eax
mov dword [esi + 0x14ba0], eax
call fcn.004c2f50
lea ecx, [esi + 0x14bb8]
call fcn.00463020
mov ecx, dword [esi + 0x150]
mov byte [esi + 0x14ba4], 0
mov dword [esi + 0x14ba8], 0x437f0000
push ecx
mov eax, dword [ecx]
mov dword [esp], 0x402ccccd
call dword [eax + 0x14]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00551c1f
mov esp, ebp
pop ebp
ret 4