Function at 0x405990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d8da
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x418014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x406321
cmp dword [ebp - 0x444], 0
je 0x406321
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x40631e
cmp dword [ebp - 0x444], 0
je 0x40631e
mov edi, dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
lea eax, [ebp - 0x21c]
push eax
push str._ZIP__ZipPathName__s_n
call edi
lea eax, [ebp - 0x428]
push eax
push str._ZIP__FilePathName__s_n
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x21c]
add esp, 0x10
push eax
call esi
test eax, eax
jne 0x405ad6
lea ecx, [ebp - 0x48c]
call dword [0x40e448]
push 0
push 0x1001
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x48c]
call dword [sym.imp.mfc140u.dll_CFile::Open]
test eax, eax
je 0x405ab2
push 0x18
push 0x4180b0
lea ecx, [ebp - 0x48c]
call dword [sym.imp.mfc140u.dll_CFile::Write]
lea ecx, [ebp - 0x48c]
call dword [sym.imp.mfc140u.dll_CFile::Close]
jmp 0x405ac3
lea eax, [ebp - 0x21c]
push eax
push str._ZIP__Open_ERROR__s_n
call edi
add esp, 8
lea ecx, [ebp - 0x48c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_CFile::CFile]
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
je 0x406330
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x440]
call fcn.004058d0
mov dword [ebp - 4], 1
push dword [ebp - 0x440]
push str._ZIP__File_Body__s_n
call edi
mov dword [ebp - 0x434], 0
push ecx
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 2
call fcn.00406430
test eax, eax
jne 0x4062eb
push str._ZIP__CreateInstance___uuidof_Shell32::Shell__OK_n
call edi
xor eax, eax
lea ecx, [ebp - 0x4b0]
add esp, 4
mov word [ebp - 0x4b0], ax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.mfc140u.dll_COleVariant::operator]
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
js 0x406350
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x434]
test esi, esi
je 0x406370
movups xmm0, xmmword [ebp - 0x4a0]
mov ecx, dword [esi]
lea eax, [ebp - 0x430]
push eax
sub esp, 0x10
mov dword [ebp - 0x430], 0
mov eax, esp
push esi
movups xmmword [eax], xmm0
call dword [ecx + 0x24]
test eax, eax
jns 0x405bc9
push 0x411d3c
push esi
push eax
call fcn.0040d180
mov esi, dword [ebp - 0x430]
mov dword [ebp - 0x454], esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x4a0]
push eax
call edi
lea eax, [ebp - 0x4b0]
mov byte [ebp - 4], 8
push eax
call edi
test esi, esi
je 0x4062a6
push str._ZIP__NameSpace__COleVariant_szFP_ZipPathName__OK_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
mov eax, dword [ebp - 0x440]
push 0xc
mov dword [ebp - 0x430], eax
call dword [sym.imp.mfc140u.dll_operator_2]
mov edi, eax
add esp, 8
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x44c], edi
mov byte [ebp - 4], 9
test edi, edi
je 0x405c5f
push dword [ebp - 0x430]
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
jne 0x405c67
cmp dword [ebp - 0x430], eax
jne 0x406356
jmp 0x405c67
xor edi, edi
mov dword [ebp - 0x42c], edi
mov byte [ebp - 4], 8
mov dword [ebp - 0x44c], edi
test edi, edi
je 0x406360
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x430]
mov eax, dword [esi]
push ecx
mov dword [ebp - 0x430], 0
push dword [edi]
push esi
call dword [eax + 0x30]
test eax, eax
jns 0x405ca6
push 0x411d4c
push esi
push eax
call fcn.0040d180
mov edi, dword [ebp - 0x430]
or eax, 0xffffffff
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x44c], edi
lock xadd dword [ecx + 8], eax
dec eax
jne 0x405d05
mov eax, dword [ecx]
test eax, eax
je 0x405cdc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x42c]
mov dword [ecx], 0
mov eax, dword [ecx + 4]
test eax, eax
je 0x405cfa
push eax
call dword [sym.imp.mfc140u.dll_operator_1]
mov ecx, dword [ebp - 0x42c]
add esp, 4
mov dword [ecx + 4], 0
push 0xc
push ecx
call fcn.0040c39e
add esp, 8
mov byte [ebp - 4], 0xd
test edi, edi
je 0x405f02
mov eax, dword [esi]
lea ecx, [ebp - 0x42c]
push ecx
push esi
mov dword [ebp - 0x42c], 0
call dword [eax + 0x2c]
test eax, eax
jns 0x405d38
push 0x411d4c
push esi
push eax
call fcn.0040d180
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x438], ecx
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x406370
mov eax, dword [ecx]
lea edx, [ebp - 0x43c]
push edx
push ecx
mov dword [ebp - 0x43c], 0
call dword [eax + 0x1c]
test eax, eax
jns 0x405d7c
push 0x411d5c
push dword [ebp - 0x42c]
push eax
call fcn.0040d180
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x42c]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
xor eax, eax
mov byte [ebp - 4], 0xd
push str.delete
lea ecx, [ebp - 0x478]
mov word [ebp - 0x478], ax
call dword [sym.imp.mfc140u.dll_COleVariant::operator]
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 0x11
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
js 0x40636a
sub esp, 0x10
mov byte [ebp - 4], 0x12
movups xmm0, xmmword [ebp - 0x468]
mov ecx, dword [edi]
mov eax, esp
push edi
movups xmmword [eax], xmm0
call dword [ecx + 0x5c]
test eax, eax
jns 0x405e00
push 0x411d6c
push edi
push eax
call fcn.0040d180
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x478]
mov byte [ebp - 4], 0xd
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp - 0x440]
push str.__s__exists._Deleted_it._r_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
mov eax, dword [edi]
add esp, 8
push edi
call dword [eax + 8]
xor edi, edi
mov dword [ebp - 0x44c], edi
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x42c]
mov eax, dword [esi]
push ecx
push esi
mov dword [ebp - 0x42c], edi
call dword [eax + 0x2c]
test eax, eax
jns 0x405e67
push 0x411d4c
push esi
push eax
call fcn.0040d180
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x438], ecx
mov byte [ebp - 4], 0x16
test ecx, ecx
je 0x406370
mov eax, dword [ecx]
lea edx, [ebp - 0x430]
push edx
push ecx
mov dword [ebp - 0x430], 0
call dword [eax + 0x1c]
test eax, eax
jns 0x405eab
push 0x411d5c
push dword [ebp - 0x42c]
push eax
call fcn.0040d180
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x42c]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x430]
cmp eax, dword [ebp - 0x43c]
jne 0x405f02
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [ebp - 0x454], 0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x406370
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [ebp - 0x434], eax
jmp 0x4062fb
mov eax, dword [esi]
lea ecx, [ebp - 0x42c]
push ecx
push esi
mov dword [ebp - 0x42c], 0
call dword [eax + 0x2c]
test eax, eax
jns 0x405f29
push 0x411d4c
push esi
push eax
call fcn.0040d180
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x438], ecx
mov byte [ebp - 4], 0x20
test ecx, ecx
je 0x406370
mov eax, dword [ecx]
lea edx, [ebp - 0x450]
push edx
push ecx
mov dword [ebp - 0x450], 0
call dword [eax + 0x1c]
test eax, eax
jns 0x405f6d
push 0x411d5c
push dword [ebp - 0x42c]
push eax
call fcn.0040d180
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x42c]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
push str._ZIP__CopyHere___start_n
mov byte [ebp - 4], 0xd
call dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
add esp, 4
lea ecx, [ebp - 0x488]
push 3
push 0x414
call dword [sym.imp.mfc140u.dll_COleVariant::COleVariant]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x4c0]
mov byte [ebp - 4], 0x22
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push dword [ebp - 0x438]
lea eax, [ebp - 0x4c0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
js 0x40637a
xor eax, eax
mov byte [ebp - 4], 0x23
mov word [ebp - 0x468], ax
lea ecx, [ebp - 0x468]
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.mfc140u.dll_COleVariant::operator]
lea eax, [ebp - 0x478]
mov byte [ebp - 4], 0x24
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
js 0x406380
mov byte [ebp - 4], 0x25
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x4c0]
mov ecx, dword [esi]
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x478]
push esi
movups xmmword [eax], xmm0
call dword [ecx + 0x3c]
mov dword [ebp - 0x430], eax
test eax, eax
jns 0x40605f
push 0x411d4c
push esi
push eax
call fcn.0040d180
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x4c0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 0xd
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push str._ZIP__CopyHere___end_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
add esp, 4
cmp dword [ebp - 0x430], 0
jne 0x406270
xor eax, eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x43c], eax
test eax, eax
jne 0x406134
push str.W.W0f0D00Y0.
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x406114
push str.Compressing...
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x406114
push str.ck_W
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x406114
push 0x418058
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x406114
push 0x418044
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x406134
push 5
push 0
push 0
push 0
push 0xfffff830
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x43c], 1
mov eax, dword [esi]
lea ecx, [ebp - 0x42c]
push ecx
push esi
mov dword [ebp - 0x42c], 0
call dword [eax + 0x2c]
test eax, eax
jns 0x40615b
push 0x411d4c
push esi
push eax
call fcn.0040d180
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x490], ecx
mov byte [ebp - 4], 0x27
test ecx, ecx
je 0x406370
mov eax, dword [ecx]
lea edx, [ebp - 0x438]
push edx
push ecx
mov dword [ebp - 0x438], 0
call dword [eax + 0x1c]
test eax, eax
jns 0x40619f
push 0x411d5c
push dword [ebp - 0x42c]
push eax
call fcn.0040d180
mov byte [ebp - 4], 0x28
mov ecx, dword [ebp - 0x42c]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x450]
cmp dword [ebp - 0x438], eax
jg 0x40627e
mov eax, dword [ebp - 0x458]
test eax, eax
je 0x4061d1
inc dword [eax]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x448]
inc eax
mov dword [ebp - 0x448], eax
cmp eax, 0x32
mov eax, dword [ebp - 0x43c]
jl 0x4060c0
push str.W.W0f0D00Y0.
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x406246
push str.Compressing...
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x406246
push str.ck_W
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x406246
push 0x418058
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x406246
push 0x418044
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x406259
xor eax, eax
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x43c]
jmp 0x4060c0
push str._ZIP__Window_dont_exist.__It_is_considered_that_it_was_canceled.__n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
mov dword [ebp - 0x430], 1
jmp 0x40627b
push str._ZIP__CopyHere___ERROR_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
add esp, 4
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor esi, esi
mov dword [ebp - 0x454], esi
mov byte [ebp - 4], 0x2b
test edi, edi
je 0x40629a
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x430]
jmp 0x4062b9
push str._ZIP__NameSpace__COleVariant_szFP_ZipPathName__ERROR_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
add esp, 4
mov edi, 1
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x406370
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [ebp - 0x434], eax
mov byte [ebp - 4], 0x2e
test esi, esi
je 0x406300
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x434]
jmp 0x406300
push str._ZIP__CreateInstance___uuidof_Shell32::Shell__ERROR_n
call edi
mov eax, dword [ebp - 0x434]
add esp, 4
mov edi, 1
mov byte [ebp - 4], 0x2f
test eax, eax
je 0x40630e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x440]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
jmp 0x406335
push esi
jmp 0x406322
push edi
push str._ZIP__GetFullPathName___ERROR__s_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c38d
mov esp, ebp
pop ebp
ret
push eax
call fcn.0040d160
push 0x8007000e
call fcn.0040d160
push 0x8007000e
call fcn.0040d160
push eax
call fcn.0040d160
push 0x80004003
call fcn.0040d160
push eax
call fcn.0040d160
push eax
call fcn.0040d160
int3