Function at 0x406840
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d7ab
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x475080]
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 0x406a9c
test ebx, ebx
je 0x406a9c
mov eax, dword [esi + 0x38]
mov edi, 1
cmp eax, edi
jle 0x406893
cmp dword [esi + 0x5c], eax
jl 0x406893
dec eax
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x34], 3
jne 0x4068db
mov eax, dword [esi + 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406a44
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x6c]
push 0
push ecx
mov ecx, dword [esi + 0x64]
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.00401100
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 0x406a9c
call fcn.00401170
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, edi
jne 0x406a21
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.0041eb30
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
call fcn.00401170
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 + 0x74]
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x70]
push ecx
push edx
push eax
lea ecx, [ebp - 0x218]
push ecx
push str._s_s__d_s
lea edi, [ebp - 0x21c]
call fcn.00406090
mov edi, dword [ebp - 0x21c]
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
test eax, eax
je 0x4069a1
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x64]
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.00401100
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 0x4069f8
cmp dword [esi + 0x38], 1
jle 0x4069cb
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
mov ecx, dword [esi + 0x68]
push eax
push edx
mov edx, dword [esi + 0x64]
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 + 0x54]
add ecx, eax
push ecx
jmp 0x4069eb
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x64]
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 + 0x54]
push eax
push ebx
call fcn.00401100
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 0x406a9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406a9c
call fcn.00401170
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, 2
jne 0x406a44
mov eax, dword [esi + 0x70]
push 0
push eax
call fcn.00401170
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 0x406a6f
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
mov ecx, dword [esi + 0x68]
push eax
push edx
mov edx, dword [esi + 0x64]
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 + 0x54]
add ecx, eax
push ecx
jmp 0x406a8f
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x64]
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 + 0x54]
push eax
push ebx
call fcn.00401100
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.0041d97a
mov esp, ebp
pop ebp
ret 8