Function at 0x404690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4657ec
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x47f5dc]
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, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x4046ce
mov eax, dword [edi]
jmp 0x4046d0
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x4046da
mov ecx, dword [esi]
jmp 0x4046dc
mov ecx, esi
push eax
push ecx
push str.ReleasZip_strZip_s_strParent_s
push 0xda
push str.UpgradeWindow.cpp
call fcn.0040a560
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x4046ff
mov eax, dword [esi]
jmp 0x404701
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
je 0x404a6f
test al, 0x10
jne 0x404a6f
cmp dword [edi + 0x14], 8
jb 0x404725
mov eax, dword [edi]
jmp 0x404727
mov eax, edi
push eax
call ebx
cmp eax, 0xffffffff
je 0x404a6f
test al, 0x10
je 0x404a6f
mov edx, esi
lea ecx, [ebp - 0xc4]
call fcn.004126d0
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00412770
xor eax, eax
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
push ecx
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x7c]
xorps xmm0, xmm0
push eax
lea edx, [ebp - 0xc4]
movlpd qword [ebp - 0xe8], xmm0
mov ecx, esi
call fcn.00414060
add esp, 0xc
test eax, eax
je 0x4047c6
push str.ReleasZip_Failed
push 0xda
push str.UpgradeWindow.cpp
call fcn.0040a560
add esp, 0xc
xor esi, esi
jmp 0x4049c5
xor eax, eax
mov dword [ebp - 0xc8], 7
mov dword [ebp - 0xcc], 0
mov word [ebp - 0xdc], ax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x64]
cmp esi, dword [ebp - 0x60]
je 0x4049a9
push esi
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x58]
call fcn.00406290
add esp, 4
push esi
mov edx, edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00406290
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.004121f0
test eax, eax
jne 0x404863
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push str.ReleasZip_FAILED_strSrcFile_s
push 0xda
push str.UpgradeWindow.cpp
call fcn.0040a560
add esp, 0x10
jmp 0x404946
xor eax, eax
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], 0
mov word [ebp - 0x94], ax
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.004121f0
cmp dword [ebp - 0x80], 8
lea eax, [ebp - 0x94]
push dword [ebp - 0x84]
cmovae eax, dword [ebp - 0x94]
push eax
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00406510
test eax, eax
jne 0x4048ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4048ce
test al, 0x10
je 0x404918
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
push str.ReleasZip_CopyFile_strSrcFile_s_strDestFile_s
push 0xda
push str.UpgradeWindow.cpp
call fcn.0040a560
add esp, 0x14
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
cmovae ecx, dword [ebp - 0x58]
call fcn.00411f40
cmp dword [ebp - 0x80], 8
jb 0x40492c
push dword [ebp - 0x94]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], 0
mov word [ebp - 0x94], ax
cmp dword [ebp - 0x2c], 8
jb 0x404957
push dword [ebp - 0x40]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], eax
jb 0x404978
push dword [ebp - 0x28]
call fcn.0044a77c
add esp, 4
mov byte [ebp - 4], 3
xor eax, eax
cmp dword [ebp - 0x44], 8
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
jb 0x40499d
push dword [ebp - 0x58]
call fcn.0044a77c
add esp, 4
add esi, 0x18
cmp esi, dword [ebp - 0x60]
jne 0x4047f3
push str.ReleasZip_Complete
push 0xda
push str.UpgradeWindow.cpp
call fcn.0040a560
add esp, 0xc
mov esi, 1
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x4049fb
push dword [ebp - 0xe4]
mov edx, dword [ebp - 0x60]
push ecx
call fcn.00406a00
push dword [ebp - 0x64]
call fcn.0044a77c
add esp, 0xc
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x68], 8
jb 0x404a0c
push dword [ebp - 0x7c]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [ebp - 0x68], 7
cmp dword [ebp - 0x98], 8
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
jb 0x404a37
push dword [ebp - 0xac]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [ebp - 0x98], 7
cmp dword [ebp - 0xb0], 8
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], ax
jb 0x404a6b
push dword [ebp - 0xc4]
call fcn.0044a77c
add esp, 4
mov eax, esi
jmp 0x404a71
xor eax, eax
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.0044a781
mov esp, ebp
pop ebp
ret 8