Function at 0x405770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dacb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x46800c]
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 edi, ecx
cmp byte [edi + 0x31], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
je 0x405aa3
test eax, eax
je 0x405aa3
mov eax, dword [edi + 0x38]
cmp eax, 1
jle 0x4057cc
cmp dword [edi + 0x60], eax
jl 0x4057cc
dec eax
mov dword [edi + 0x60], eax
cmp dword [edi + 0x34], 3
jne 0x405827
push dword [edi + 0x80]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push 0
test eax, eax
je 0x405818
push dword [edi + 0x60]
push dword [edi + 0x5c]
push dword [edi + 0x68]
push dword [edi + 0x18]
push dword [edi + 0x14]
push ebx
push esi
push dword [edi + 0x80]
push dword [ebp - 0x21c]
call sym.nsUninstall.exe_public:_static_class_CNsImage____cdecl_CNsImage::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x40596a
cmp dword [edi + 0x38], 1
jle 0x4059df
jmp 0x405a1c
call sym.nsUninstall.exe_public:_static_class_CNsSkin____cdecl_CNsSkin::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, 1
jne 0x4059ac
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004187d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call sym.nsUninstall.exe_public:_static_class_CNsSkin____cdecl_CNsSkin::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_void___thiscall_CNsSkin::GetThemesPath_wchar_t__
lea ecx, [ebp - 0x220]
call fcn.00409460
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push dword [edi + 0x88]
push dword [edi + 0x60]
push dword [edi + 0x84]
push eax
lea eax, [ebp - 0x220]
push str._s_s__d_s
push eax
call fcn.00409b00
mov esi, dword [ebp - 0x220]
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [ebp + 0x10]
push 0
test eax, eax
je 0x4058df
push dword [edi + 0x60]
push dword [edi + 0x5c]
push dword [edi + 0x68]
push dword [edi + 0x18]
push dword [edi + 0x14]
push ebx
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x21c]
call sym.nsUninstall.exe_public:_static_class_CNsImage____cdecl_CNsImage::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x40592f
cmp dword [edi + 0x38], 1
jle 0x405904
mov ecx, dword [edi + 0x60]
mov eax, dword [edi + 0x58]
push ecx
push dword [edi + 0x5c]
add eax, ecx
push dword [edi + 0x68]
push dword [edi + 0x18]
push dword [edi + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x7c]
push eax
jmp 0x40591d
push dword [edi + 0x60]
push dword [edi + 0x5c]
push dword [edi + 0x68]
push dword [edi + 0x18]
push dword [edi + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x7c]
push dword [edi + 0x58]
push dword [ebp - 0x21c]
call sym.nsUninstall.exe_public:_static_class_CNsImage____cdecl_CNsImage::Instance_void_
mov ecx, eax
call sym.nsUninstall.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
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405967
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x405ac1
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp + 0xc]
mov edx, dword [edi + 0x78]
cmp dword [edx - 0xc], 0
jle 0x405aa3
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x70]
sub eax, ecx
cmp byte [edi + 0x8c], 0
push 0
push 1
push 1
push 0xfe
je 0x405a7c
cmp dword [edi + 0x60], 0
je 0x405a7c
push dword [edi + 0x90]
jmp 0x405a7f
call sym.nsUninstall.exe_public:_static_class_CNsSkin____cdecl_CNsSkin::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, 2
jne 0x405a0d
push 0
push dword [edi + 0x84]
call sym.nsUninstall.exe_public:_static_class_CNsSkin____cdecl_CNsSkin::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_bool___thiscall_CNsSkin::GetRes_wchar_t_const___struct_IStream__
cmp dword [edi + 0x38], 1
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push 0
jg 0x405a1c
push dword [edi + 0x60]
push dword [edi + 0x5c]
push dword [edi + 0x68]
push dword [edi + 0x18]
push dword [edi + 0x14]
push ebx
push esi
push dword [edi + 0x7c]
push dword [edi + 0x58]
push dword [ebp - 0x21c]
call sym.nsUninstall.exe_public:_static_class_CNsImage____cdecl_CNsImage::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____int__wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x40596a
cmp dword [edi + 0x38], 1
push dword [edi + 0x6c]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
jle 0x405a4e
mov ecx, dword [edi + 0x60]
mov eax, dword [edi + 0x58]
push ecx
push dword [edi + 0x5c]
add eax, ecx
push dword [edi + 0x68]
push dword [edi + 0x18]
push dword [edi + 0x14]
push ebx
push esi
push dword [edi + 0x7c]
push eax
push dword [ebp - 0x21c]
call sym.nsUninstall.exe_public:_static_class_CNsImage____cdecl_CNsImage::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____int__wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x40596a
push dword [edi + 0x60]
push dword [edi + 0x5c]
push dword [edi + 0x68]
push dword [edi + 0x18]
push dword [edi + 0x14]
push ebx
push esi
push dword [edi + 0x7c]
push dword [edi + 0x58]
push dword [ebp - 0x21c]
call sym.nsUninstall.exe_public:_static_class_CNsImage____cdecl_CNsImage::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____int__wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x40596a
push dword [edi + 0x28]
push dword [edi + 0x18]
push eax
mov eax, dword [edi + 0x74]
add eax, ebx
push eax
lea eax, [ecx + esi]
push eax
push edx
push dword [edi + 0x24]
push dword [ebp - 0x21c]
call sym.nsUninstall.exe_public:_static_class_CNsImage____cdecl_CNsImage::Instance_void_
mov ecx, eax
call sym.nsUninstall.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.00416d81
mov esp, ebp
pop ebp
ret 0xc
call edx
jmp 0x405967