Function at 0x4082c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447f8b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x459080]
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 0x40851c
test ebx, ebx
je 0x40851c
mov eax, dword [esi + 0x38]
mov edi, 1
cmp eax, edi
jle 0x408313
cmp dword [esi + 0x5c], eax
jl 0x408313
dec eax
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x34], 3
jne 0x40835b
mov eax, dword [esi + 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4084c4
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.004010a0
mov ecx, eax
call sym.Install_ring.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x40851c
call fcn.00401110
mov ecx, eax
call sym.Install_ring.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, edi
jne 0x4084a1
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004188a0
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
call fcn.00401110
mov ecx, eax
call sym.Install_ring.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.00405ee0
mov edi, dword [ebp - 0x21c]
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
test eax, eax
je 0x408421
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.004010a0
mov ecx, eax
call sym.Install_ring.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x408478
cmp dword [esi + 0x38], 1
jle 0x40844b
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 0x40846b
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.004010a0
mov ecx, eax
call sym.Install_ring.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 0x40851c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40851c
call fcn.00401110
mov ecx, eax
call sym.Install_ring.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, 2
jne 0x4084c4
mov eax, dword [esi + 0x70]
push 0
push eax
call fcn.00401110
mov ecx, eax
call sym.Install_ring.exe_public:_bool___thiscall_CNsSkin::GetRes_wchar_t_const___struct_IStream__
push 0
cmp dword [esi + 0x38], edi
jle 0x4084ef
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 0x40850f
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.004010a0
mov ecx, eax
call sym.Install_ring.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.0041799a
mov esp, ebp
pop ebp
ret 8