Function at 0x407440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44477b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x454080]
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 0x40769c
test ebx, ebx
je 0x40769c
mov eax, dword [esi + 0x38]
mov edi, 1
cmp eax, edi
jle 0x407493
cmp dword [esi + 0x54], eax
jl 0x407493
dec eax
mov dword [esi + 0x54], eax
cmp dword [esi + 0x34], 3
jne 0x4074db
mov eax, dword [esi + 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407644
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.00401090
mov ecx, eax
call sym.Install_classic.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x40769c
call fcn.00401100
mov ecx, eax
call sym.Install_classic.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, edi
jne 0x407621
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004177b0
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
call fcn.00401100
mov ecx, eax
call sym.Install_classic.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.00405370
mov edi, dword [ebp - 0x21c]
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
test eax, eax
je 0x4075a1
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.00401090
mov ecx, eax
call sym.Install_classic.exe_public:_bool___thiscall_CNsImage::DrawStretchImg_struct_HDC_____wchar_t_const___int__int__int__int__int__int__int__int_
jmp 0x4075f8
cmp dword [esi + 0x38], 1
jle 0x4075cb
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 0x4075eb
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.00401090
mov ecx, eax
call sym.Install_classic.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 0x40769c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40769c
call fcn.00401100
mov ecx, eax
call sym.Install_classic.exe_public:_int___thiscall_CNsSkin::GetResType_void_
cmp eax, 2
jne 0x407644
mov eax, dword [esi + 0x68]
push 0
push eax
call fcn.00401100
mov ecx, eax
call sym.Install_classic.exe_public:_bool___thiscall_CNsSkin::GetRes_wchar_t_const___struct_IStream__
push 0
cmp dword [esi + 0x38], edi
jle 0x40766f
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 0x40768f
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.00401090
mov ecx, eax
call sym.Install_classic.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.004168aa
mov esp, ebp
pop ebp
ret 8