Function at 0x405b10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44531b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x456080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [esi + 0x31], 0
je 0x405d6c
test ebx, ebx
je 0x405d6c
mov eax, dword [esi + 0x38]
mov edi, 1
cmp eax, edi
jle 0x405b63
cmp dword [esi + 0x54], eax
jl 0x405b63
dec eax
mov dword [esi + 0x54], eax
cmp dword [esi + 0x34], 3
jne 0x405bab
mov eax, dword [esi + 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405d14
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x64]
push 0
push ecx
mov ecx, dword [esi + 0x5c]
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0xf
push 0xf
push edx
push ecx
push eax
push ebx
call fcn.004010a0
mov ecx, eax
call sym.Install_vip.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x405d6c
call fcn.00401110
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, edi
jne 0x405cf1
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004182c0
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
call fcn.00401110
mov ecx, eax
call sym.Install_vip.exe_public:_void___thiscall_CNsSkin::GetThemesPath_wchar_t__
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x68]
push ecx
push edx
push eax
lea ecx, [ebp - 0x218]
push ecx
push str._s_s__d_s
lea edi, [ebp - 0x21c]
call fcn.004053b0
mov edi, dword [ebp - 0x21c]
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
test eax, eax
je 0x405c71
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x5c]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push 0xf
push 0xf
push edx
push eax
push edi
push ebx
call fcn.004010a0
mov ecx, eax
call sym.Install_vip.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x405cc8
cmp dword [esi + 0x38], 1
jle 0x405c9b
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x60]
push eax
push edx
mov edx, dword [esi + 0x5c]
push edx
mov edx, dword [ebp + 0xc]
push 0xf
push 0xf
push edx
mov edx, dword [ebp + 8]
push edx
push ecx
mov ecx, dword [esi + 0x4c]
add ecx, eax
push ecx
jmp 0x405cbb
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x60]
push edx
mov edx, dword [esi + 0x5c]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0xf
push 0xf
push ecx
push edx
push eax
mov eax, dword [esi + 0x4c]
push eax
push ebx
call fcn.004010a0
mov ecx, eax
call sym.Install_vip.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____int__wchar_t_const___int__int__int__int__int__int__int__int_
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405d6c
call fcn.00401110
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, 2
jne 0x405d14
mov eax, dword [esi + 0x68]
push 0
push eax
call fcn.00401110
mov ecx, eax
call sym.Install_vip.exe_public:_bool___thiscall_CNsSkin::GetRes_wchar_t_const___struct_IStream__
push 0
cmp dword [esi + 0x38], edi
jle 0x405d3f
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x60]
push eax
push edx
mov edx, dword [esi + 0x5c]
push edx
mov edx, dword [ebp + 0xc]
push 0xf
push 0xf
push edx
mov edx, dword [ebp + 8]
push edx
push ecx
mov ecx, dword [esi + 0x4c]
add ecx, eax
push ecx
jmp 0x405d5f
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x60]
push edx
mov edx, dword [esi + 0x5c]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0xf
push 0xf
push ecx
push edx
push eax
mov eax, dword [esi + 0x4c]
push eax
push ebx
call fcn.004010a0
mov ecx, eax
call sym.Install_vip.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____int__wchar_t_const___int__int__int__int__int__int__int__int_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004173c6
mov esp, ebp
pop ebp
ret 8