Function at 0x418a00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4705f6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4a5010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
mov ecx, dword [ebx + 0x494]
xorps xmm0, xmm0
push esi
push eax
movq qword [ebp - 0x34], xmm0
call fcn.00406d30
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
test ecx, ecx
setne al
test al, al
je 0x418c1a
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00408490
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418bc4
mov ecx, dword [ebx + 0x494]
push esi
call fcn.00406fc0
cmp eax, 4
ja case.0x418ab2.1
jmp dword [eax*4 + 0x418c68]
mov ecx, dword [ebx + 0x408]
push 0
push dword [0x4a5bbc]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::STabCtrl::SetCurSel_wchar_t_const___int_]
push 1
mov ecx, ebx
call fcn.004186e0
mov ecx, dword [ebx + 0x43c]
mov edi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::EnableWindow_int__int_]
push 0
push 1
call edi
mov ecx, dword [ebx + 0x454]
mov esi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
push 1
push 1
call esi
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00412fd0
mov ecx, dword [ebx + 0x454]
push eax
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetCheck_int_]
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
push 0
cmovae edx, dword [ebp - 0x2c]
sub esp, 0x18
mov ecx, esp
call fcn.0043abf0
call fcn.0043a920
mov ecx, dword [ebx + 0x444]
add esp, 0x18
movzx eax, al
push eax
call edi
mov ecx, dword [ebx + 0x444]
push 1
push 1
call esi
jmp case.0x418ab2.1
mov ecx, dword [ebx + 0x408]
push 0
push dword [0x4a5bb4]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::STabCtrl::SetCurSel_wchar_t_const___int_]
push 0
mov ecx, ebx
call fcn.004186e0
push 0
push 1
jmp 0x418b98
mov ecx, dword [ebx + 0x408]
push 0
push dword [0x4a5bb8]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::STabCtrl::SetCurSel_wchar_t_const___int_]
push 0
mov ecx, ebx
call fcn.004186e0
push 0
push 0
mov ecx, dword [ebx + 0x43c]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::EnableWindow_int__int_]
mov ecx, dword [ebx + 0x454]
mov esi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
push 1
push 0
call esi
mov ecx, dword [ebx + 0x444]
push 1
push 0
call esi
jmp case.0x418ab2.1
mov ecx, dword [ebx + 0x408]
push 0
push dword [0x4a5bb4]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::STabCtrl::SetCurSel_wchar_t_const___int_]
push 0
mov ecx, ebx
call fcn.004186e0
mov ecx, dword [ebx + 0x43c]
push 1
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::EnableWindow_int__int_]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x418c06
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004085b0
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x418c49
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x418c49
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x418c49
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043f53f
mov esp, ebp
pop ebp
ret 4