Function at 0x402180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4182eb
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x426034]
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
lea ecx, [ebp + 0x20]
mov dword [ebp - 4], 1
call fcn.00404590
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x20]
push eax
call fcn.004014c0
call fcn.00403280
add esp, 0x18
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.004014c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00404590
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne bl
cmp dword [ebp - 0x14], 8
jb 0x402247
push dword [ebp - 0x28]
call edi
add esp, 4
test bl, bl
jne 0x402277
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push str._AutoUpdate__ERR:Unzip_fail_dir___s__not_exist_
push 1
push 0x1e
push 0x41bca0
push 0x41bc34
call fcn.0040c0c0
add esp, 0x18
jmp 0x4024e2
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
sub esp, 8
call fcn.0040ae60
mov esi, eax
add esp, 8
mov dword [ebp - 0x25c], esi
test esi, esi
jne 0x4022c7
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str._AutoUpdate__ERR:OpenZip_fail____s
push 1
push 0x24
push 0x41bd30
push 0x41bd78
call fcn.0040c0c0
add esp, 0x18
xor bl, bl
jmp 0x4024e2
push 0x22c
lea eax, [ebp - 0x254]
mov dword [ebp - 0x258], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
or edx, 0xffffffff
mov ecx, esi
push eax
call fcn.0040af80
mov eax, dword [ebp - 0x258]
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x260], eax
test eax, eax
jle 0x4024e0
push 0x230
lea eax, [ebp - 0x258]
push 0
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [ebp - 0x258], 0
add esp, 0xc
mov word [ebp - 0x254], ax
mov dword [ebp - 0x2c], eax
cmp dword [esi], 1
je 0x40234e
mov dword [0x426ea0], 0x80000
jmp 0x402363
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x258]
push eax
push ebx
call fcn.0040a6b0
mov dword [0x426ea0], eax
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x254]
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x28]
push 0x41bd84
push eax
call fcn.00404de0
add esp, 0x10
mov byte [ebp - 4], 3
test byte [ebp - 0x4c], 0x10
je 0x4023d8
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.004014c0
call fcn.00403280
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x4024d3
push dword [ebp - 0x28]
call edi
add esp, 4
jmp 0x4024d3
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x40243b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x264], esp
push 0x41bd90
call fcn.00401970
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.004014c0
mov byte [ebp - 4], 3
call fcn.00403210
add esp, 0x30
test eax, eax
je 0x4024bb
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
jmp 0x4024bb
push esi
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov edi, eax
push esi
test edi, edi
je 0x40249a
mov ecx, dword [ebp - 0x25c]
mov edx, ebx
push edi
call fcn.0040aff0
add esp, 8
test eax, eax
jne 0x40248e
mov esi, dword [ebp - 0x2c]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.004014c0
mov edx, esi
mov ecx, edi
call fcn.00403500
add esp, 0x18
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
jmp 0x4024b5
push str._AutoUpdate__malloc:_d_bytes_fail2
push 1
push 0x4c
push str..._srcAutoUpdateService_stdafx.cpp
push str.Unzip
call fcn.0040bd30
add esp, 0x18
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x4024cd
push dword [ebp - 0x28]
call edi
add esp, 4
mov esi, dword [ebp - 0x25c]
inc ebx
cmp ebx, dword [ebp - 0x260]
jl 0x402311
mov bl, 1
cmp dword [ebp + 0x1c], 8
jb 0x4024f0
push dword [ebp + 8]
call edi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x402512
push dword [ebp + 0x20]
call edi
add esp, 4
mov al, bl
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.00417832
mov esp, ebp
pop ebp
ret