Function at 0x401b50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d8eb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x475080]
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 eax, dword [ebp + 8]
mov esi, ecx
cmp byte [esi + 0x31], 0
mov dword [ebp - 0x21c], eax
je 0x401ea2
test eax, eax
je 0x401ea2
mov eax, dword [esi + 0x38]
mov ebx, 1
cmp eax, ebx
jle 0x401bb0
cmp dword [esi + 0x60], eax
jl 0x401bb0
dec eax
mov dword [esi + 0x60], eax
cmp dword [esi + 0x34], 3
jne 0x401c2f
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401dc2
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x5c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + 0x80]
push 0
push ecx
mov ecx, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [ebp - 0x21c]
push ecx
push edi
push ebx
push eax
push edx
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 0x401e45
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x7c]
push ecx
mov ecx, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x58]
push ecx
push edi
push ebx
push eax
mov eax, dword [ebp - 0x21c]
push edx
push eax
jmp 0x401e39
call fcn.00401170
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, ebx
jne 0x401d9c
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 - 0x220], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x84]
push ecx
push edx
push eax
lea ecx, [ebp - 0x218]
push ecx
push str._s_s__d_s
lea edi, [ebp - 0x220]
call fcn.00406090
mov edx, dword [ebp - 0x220]
add esp, 0x14
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp + 0x10]
push 0
test eax, eax
je 0x401d0b
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x68]
mov ebx, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x21c]
push ecx
push edi
push ebx
push edx
push eax
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 0x401d6a
cmp dword [esi + 0x38], ebx
mov edx, dword [esi + 0x5c]
mov ebx, dword [ebp + 0xc]
jle 0x401d3c
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x7c]
push eax
push edx
mov edx, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push edx
mov edx, dword [ebp - 0x21c]
push edi
push ebx
push ecx
mov ecx, dword [esi + 0x58]
add ecx, eax
push ecx
push edx
jmp 0x401d5e
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x7c]
push ecx
mov ecx, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x58]
push ecx
push edi
push ebx
push eax
mov eax, dword [ebp - 0x21c]
push edx
push eax
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 dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401e45
call fcn.00401170
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, 2
jne 0x401dfc
mov eax, dword [esi + 0x84]
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__
cmp dword [esi + 0x38], ebx
mov edx, dword [esi + 0x5c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0
jle 0x401c08
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x7c]
push eax
push edx
mov edx, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push edx
mov edx, dword [ebp - 0x21c]
push edi
push ebx
push ecx
mov ecx, dword [esi + 0x58]
add ecx, eax
push ecx
push edx
jmp 0x401e39
cmp dword [esi + 0x38], ebx
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
jle 0x401e10
mov edx, dword [esi + 0x6c]
push edx
mov edx, dword [esi + 0x5c]
jmp 0x401dd6
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x7c]
push ecx
mov ecx, dword [esi + 0x5c]
push edx
mov edx, dword [esi + 0x68]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push ecx
mov ecx, dword [ebp - 0x21c]
push edx
push edi
push ebx
push eax
mov eax, dword [esi + 0x58]
push eax
push ecx
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 eax, dword [esi + 0x78]
cmp dword [eax - 0xc], 0
jle 0x401ea2
cmp byte [esi + 0x8c], 0
mov ecx, dword [esi + 0x70]
push 0
push 1
push 1
push 0xfe
je 0x401e73
cmp dword [esi + 0x60], 0
je 0x401e73
mov edx, dword [esi + 0x90]
jmp 0x401e76
mov edx, dword [esi + 0x28]
push edx
mov edx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
sub edx, ecx
push edx
mov edx, dword [esi + 0x74]
add edx, edi
push edx
add ecx, ebx
push ecx
mov ecx, dword [ebp - 0x21c]
push eax
mov eax, dword [esi + 0x24]
push eax
push ecx
call fcn.00401100
mov ecx, eax
call sym.Install_vip.exe_public:_void___thiscall_CNsImage::DrawString_struct_HDC_____struct_HFONT_____wchar_t_const___int__int__int__int__unsigned_long_int__int__bool__bool__int_
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.0041d97a
mov esp, ebp
pop ebp
ret 0xc