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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4661f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x298], edi
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2a0], eax
mov dword [eax], 0
mov dword [eax + 4], 0
cmp dword [esi + 0x14], 8
jb 0x4140c1
mov eax, dword [esi]
jmp 0x4140c3
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4145df
test al, 0x10
jne 0x4145df
cmp dword [edi + 0x14], 8
jb 0x4140e7
mov eax, dword [edi]
jmp 0x4140e9
mov eax, edi
push eax
call ebx
cmp eax, 0xffffffff
je 0x4140f5
test al, 0x10
jne 0x414106
cmp dword [edi + 0x14], 8
jb 0x4140ff
mov ecx, dword [edi]
jmp 0x414101
mov ecx, edi
call fcn.00411710
mov eax, dword [ebp - 0x29c]
cmp eax, edi
je 0x41411c
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00409dd0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
push 0
lea edx, [ebp - 0x5c]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00413710
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x41414e
mov eax, dword [esi]
jmp 0x414150
mov eax, esi
push eax
push str.UnzipFiles_m_strPatchZip_s
push 0xb4
push str.ZipUtilZipCommon.cpp
call fcn.0040a560
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x414170
mov esi, dword [esi]
sub esp, 0xc
mov ecx, esi
call fcn.00419ca0
add esp, 0xc
mov esi, eax
cmp dword [edi + 0x14], 8
jb 0x414189
mov eax, dword [edi]
jmp 0x41418b
mov eax, edi
test esi, esi
jne 0x41419b
mov dword [0x4820e4], 0x10000
jmp 0x4141ba
cmp dword [esi], 1
je 0x4141ac
mov dword [0x4820e4], 0x80000
jmp 0x4141ba
mov ecx, dword [esi + 4]
push eax
call fcn.00418ff0
mov dword [0x4820e4], eax
push esi
push str.UnzipFiles_hz_d
push 0xb4
push str.ZipUtilZipCommon.cpp
mov dword [ebp - 0x290], 0
call fcn.0040a560
xor eax, eax
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x28c], eax
mov word [ebp - 0x288], cx
mov dword [ebp - 0x60], eax
test esi, esi
jne 0x414206
mov dword [0x4820e4], 0x10000
jmp 0x414239
cmp dword [esi], 1
je 0x414217
mov dword [0x4820e4], 0x80000
jmp 0x414239
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x28c]
push eax
push 0xffffffffffffffff
call fcn.00419080
mov dword [0x4820e4], eax
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x294], eax
push eax
push str.UnzipFiles_nItems_d
push 0xb4
push str.ZipUtilZipCommon.cpp
call fcn.0040a560
xor ebx, ebx
add esp, 0x10
cmp dword [ebp - 0x294], ebx
jle 0x414531
nop
xor eax, eax
mov dword [ebp - 0x28c], 0
mov word [ebp - 0x288], ax
mov dword [ebp - 0x60], eax
test esi, esi
jne 0x414286
mov dword [0x4820e4], 0x10000
jmp 0x4142b0
cmp dword [esi], 1
je 0x414297
mov dword [0x4820e4], 0x80000
jmp 0x4142b0
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x28c]
push eax
push ebx
call fcn.00419080
mov dword [0x4820e4], eax
test eax, eax
je 0x4142d2
push ebx
push str.UnzipFiles_GetZipItem_Failed_index_d
push 0xb4
push str.ZipUtilZipCommon.cpp
call fcn.0040a560
add esp, 0x10
mov dword [ebp - 0x290], 1
test byte [ebp - 0x80], 0x10
je 0x414380
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00409dd0
mov byte [ebp - 4], 1
cmp word [ebp - 0x288], 0
jne 0x41430e
xor eax, eax
jmp 0x414326
lea eax, [ebp - 0x288]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414317
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405980
lea ecx, [ebp - 0x2c]
call fcn.004124d0
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
call fcn.00411710
lea eax, [ebp - 0x288]
push eax
push ebx
push str.UpdateLocalFiles_UnzipItem_Create_Folder_index_d__name_s
push 0xb4
push str.ZipUtilZipCommon.cpp
call fcn.0040a560
add esp, 0x14
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x414524
push dword [ebp - 0x2c]
jmp 0x41451c
test esi, esi
jne 0x414395
mov dword [0x4820e4], 0x10000
mov edi, 0x10000
jmp 0x4143ca
cmp dword [esi], 1
je 0x4143ab
mov dword [0x4820e4], 0x80000
mov edi, 0x80000
jmp 0x4143ca
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x288]
sub esp, 0xc
push eax
push ebx
call fcn.004198e0
mov edi, eax
mov dword [0x4820e4], edi
test edi, edi
je 0x414413
push edi
lea eax, [ebp - 0x288]
push eax
push ebx
push str.UpdateLocalFiles_UnzipItem_Failed_index_d__name_s__zRusult_d
push 0xb4
push str.ZipUtilZipCommon.cpp
call fcn.0040a560
add esp, 0x18
cmp edi, 0x6000000
jne 0x414434
push str.UnzipFilesImpl_UnzipItem_Cancel_Invoke
push 0xb4
push str.ZipUtilZipCommon.cpp
call fcn.0040a560
add esp, 0xc
mov dword [ebp - 0x290], 2
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp word [ebp - 0x288], ax
jne 0x41444f
xor ecx, ecx
jmp 0x41446f
cmp dword [ebp - 0x60], 0
je 0x414413
mov edi, dword [ebp - 0x298]
mov dword [ebp - 0x290], 1
jmp 0x414524
lea ecx, [ebp - 0x288]
lea edx, [ecx + 2]
jmp 0x414460
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414460
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x44]
call fcn.00409960
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004124d0
mov eax, ecx
mov ecx, dword [ebp - 0x29c]
push eax
lea ecx, [ecx + 0x18]
call fcn.00414600
mov edi, dword [ebp - 0x298]
lea eax, [ebp - 0x44]
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
push eax
mov edx, edi
movlpd qword [ebp - 0x2ac], xmm0
call fcn.00406290
add esp, 4
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2ac]
cmovae ecx, dword [ebp - 0x2c]
call fcn.00412070
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x2ac]
add dword [ecx], eax
mov eax, dword [ebp - 0x2a8]
adc dword [ecx + 4], eax
cmp dword [ebp - 0x18], 8
jb 0x4144fc
push dword [ebp - 0x2c]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x414524
push dword [ebp - 0x44]
call fcn.0044a77c
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x294]
jl 0x414260
test esi, esi
jne 0x414541
mov dword [0x4820e4], 0x10000
jmp 0x4145b1
cmp dword [esi], 1
je 0x414552
mov dword [0x4820e4], 0x80000
jmp 0x4145b1
mov ebx, dword [esi + 4]
mov ecx, ebx
call fcn.00419c40
mov dword [0x4820e4], eax
test ebx, ebx
je 0x4145a8
mov eax, dword [ebx + 0x23c]
test eax, eax
je 0x414578
push eax
call fcn.0044af4c
add esp, 4
mov eax, dword [ebx + 0x240]
mov dword [ebx + 0x23c], 0
test eax, eax
je 0x414595
push eax
call fcn.0044af4c
add esp, 4
push ebx
mov dword [ebx + 0x240], 0
call fcn.0044a77c
add esp, 4
push esi
call fcn.0044a77c
add esp, 4
mov esi, dword [ebp - 0x290]
test esi, esi
je 0x4145ca
cmp dword [edi + 0x14], 8
jb 0x4145c3
mov edi, dword [edi]
mov ecx, edi
call fcn.00411860
cmp dword [ebp - 0x48], 0x10
jb 0x4145db
push dword [ebp - 0x5c]
call fcn.0044a77c
add esp, 4
mov eax, esi
jmp 0x4145e4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044a781
mov esp, ebp
pop ebp
ret