Function at 0x415da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470056
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a5010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x494]
mov ebx, dword [ecx + 4]
sub ebx, dword [ecx]
mov edi, dword [ecx + 0x1cc]
sar ebx, 3
test edi, edi
js 0x41616d
cmp ebx, 1
jl 0x41616d
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x30], xmm0
call fcn.00406ce0
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00408490
push 0
push 0x4a8328
push 0x4a701c
push 0
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x448]
push 0
mov dword [ebp - 0x34], 0
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::GetNextLayoutChild_class_SOUI::SWindow__]
push eax
call fcn.00459032
add esp, 0x14
test eax, eax
je 0x415e97
mov ecx, dword [eax + 0x1a0]
cmp dword [ecx + 0x40], edi
je 0x415f1e
mov ecx, dword [esi + 0x448]
push 0
push 0x4a8328
push 0x4a701c
push 0
push eax
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::GetNextLayoutChild_class_SOUI::SWindow__]
push eax
call fcn.00459032
add esp, 0x14
test eax, eax
jne 0x415e60
xor eax, eax
dec ebx
test eax, eax
je 0x415fcd
mov ecx, dword [esi + 0x448]
push 1
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::GetWindow_int_]
mov dword [ebp - 0x38], eax
mov ecx, dword [eax + 0x1a0]
cmp dword [ecx + 0x40], ebx
jge 0x415f26
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call fcn.00418800
mov ebx, dword [ebp - 0x34]
mov ecx, dword [esi + 0x448]
push ebx
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::RemoveChild_class_SOUI::SWindow__]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x1a0]
mov ecx, dword [esi + 0x494]
mov eax, dword [eax + 0x40]
inc eax
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00406d30
push eax
lea ecx, [ebx + 0x1a0]
call fcn.00407de0
lea ecx, [ebp - 0x3c]
call fcn.004072a0
mov ecx, dword [esi + 0x448]
push 0
push ebx
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::InsertChild_class_SOUI::SWindow___class_SOUI::SWindow__]
jmp 0x415fcd
mov dword [ebp - 0x34], eax
jmp 0x415e99
jne 0x415fcd
mov ecx, dword [esi + 0x448]
push 0
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::GetWindow_int_]
mov dword [ebp - 0x38], eax
mov ecx, dword [eax + 0x1a0]
cmp dword [ecx + 0x40], 0
jle 0x415fa6
lea ecx, [edi - 1]
push ecx
mov ecx, esi
call fcn.00418800
mov ebx, dword [ebp - 0x34]
mov ecx, dword [esi + 0x448]
push ebx
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::RemoveChild_class_SOUI::SWindow__]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x1a0]
mov ecx, dword [esi + 0x494]
mov eax, dword [eax + 0x40]
dec eax
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00406d30
push eax
lea ecx, [ebx + 0x1a0]
call fcn.00407de0
lea ecx, [ebp - 0x3c]
call fcn.004072a0
mov ecx, dword [esi + 0x448]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::InsertChild_class_SOUI::SWindow___class_SOUI::SWindow__]
jmp 0x415fcd
jne 0x415fcd
cmp edi, ebx
jge 0x415fb1
lea eax, [edi + 1]
jmp 0x415fb6
jne 0x415fbe
lea eax, [edi - 1]
push eax
mov ecx, esi
call fcn.00418800
push dword [ebp - 0x34]
mov ecx, dword [esi + 0x448]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::DestroyChild_class_SOUI::SWindow__]
mov ecx, dword [esi + 0x448]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::RequestRelayout_void_]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416034
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x3c], 0x19
jne 0x416024
mov ebx, dword [esi + 0x40c]
cmp dword [ebx + 0x1c8], 0
je 0x416024
mov ecx, ebx
call fcn.00431110
mov ecx, ebx
call dword [sym.imp.soui.dll_public:_struct_SOUI::ISwndContainer____thiscall_SOUI::SWindow::GetContainer_void_]
lea ecx, [ebx + 0x184]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x68]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0043a230
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea eax, [esi + 0x46c]
cmovae edx, dword [ebp - 0x28]
test edx, edx
jne 0x41604d
xor ecx, ecx
jmp 0x416067
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416052
sub ecx, ebx
lea eax, [esi + 0x46c]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.00402560
mov ecx, dword [esi + 0x494]
push edi
call fcn.00406c20
mov eax, dword [esi + 0x494]
mov ecx, dword [esi + 0x40c]
mov ebx, dword [eax + 0x1cc]
test ebx, ebx
js 0x416099
call fcn.0042f2a0
jmp 0x41609f
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::Invalidate_void_]
mov eax, dword [esi + 0x494]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 3
test ecx, ecx
jg 0x4160c7
mov ecx, dword [esi + 0x404]
push 0
push dword [0x4a5b9c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::STabCtrl::SetCurSel_wchar_t_const___int_]
jmp 0x41610e
mov edi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::EnableWindow_int__int_]
lea eax, [ecx - 1]
mov dword [ebp - 0x38], eax
test ebx, ebx
jne 0x4160f2
mov ecx, dword [esi + 0x420]
push 1
push 0
call edi
mov ecx, dword [esi + 0x410]
push 1
push 0
call edi
mov eax, dword [ebp - 0x38]
cmp ebx, eax
jne 0x41610e
mov ecx, dword [esi + 0x424]
push 1
push 0
call edi
mov ecx, dword [esi + 0x41c]
push 1
push 0
call edi
mov ecx, esi
call fcn.00418210
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41612a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004085b0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x41616d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41616d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x41616d
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 - 0x10]
xor ecx, ebp
call fcn.0043f53f
mov esp, ebp
pop ebp
ret