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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e016
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x58313c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], 0
mov eax, dword [edi]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea esi, [eax - 8]
cmp esi, 0x583008
je 0x42948f
lock inc dword [esi]
cmp byte [eax], 0
mov dword [ebp - 4], 0
jne 0x4294c0
mov ebx, dword [ebp + 8]
mov dword [ebx], 0x583010
cmp esi, 0x583008
je 0x4299c8
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
cmp eax, 0xffffffff
jmp 0x4299bd
mov ebx, dword [ebp + 0x10]
push ecx
mov ecx, esp
mov dword [ecx], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0041a740
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041f110
test al, al
jne 0x429543
push str._is_outside_the_target_directory
push ecx
mov eax, esp
lea ecx, [ebp - 0x14]
push ecx
push str.Entry
push eax
call fcn.00410010
lea eax, [ebp + 0xc]
push eax
call fcn.004101a0
mov ebx, dword [ebp + 8]
push eax
push ebx
call fcn.00418eb0
mov ecx, dword [ebp + 0xc]
add esp, 8
add ecx, 0xfffffff8
or edi, 0xffffffff
cmp ecx, 0x583008
je 0x42998a
mov eax, edi
lock xadd dword [ecx], eax
dec eax
cmp eax, edi
jne 0x42998a
push ecx
call fcn.005128b5
add esp, 4
jmp 0x42998a
push 0x2f
lea ecx, [ebp - 0x14]
call fcn.00417ba0
test al, al
jne 0x42997b
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00417ba0
test al, al
jne 0x42997b
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00415fe0
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
test ebx, ebx
jne 0x4295ca
lea eax, [ebp + 0xc]
push str.Failed_to_open_the_zip_file_for_reading
push eax
call fcn.0040a5d0
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00418eb0
add esp, 0x10
lea ecx, [ebp + 0xc]
call fcn.0040e7a0
lea ecx, [ebp - 0x10]
call fcn.00406ce0
lea ecx, [ebp - 0x14]
call fcn.0040e7a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x10]
call fcn.004180a0
test al, al
je 0x42962f
cmp dword [ebp + 0x14], 0
jne 0x4295ef
mov esi, dword [ebp + 8]
mov ecx, ebx
push 1
mov dword [esi], 0x583010
mov edx, dword [ebx]
call dword [edx]
jmp 0x4295a4
lea ecx, [ebp - 0x10]
call fcn.00416aa0
test al, al
jne 0x42962f
lea eax, [ebp - 0x10]
push eax
push str.Failed_to_write_to_target_file:
lea eax, [ebp + 0xc]
push eax
call fcn.00410010
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.00418eb0
add esp, 8
lea ecx, [ebp + 0xc]
call fcn.0040e7a0
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx]
jmp 0x4295a4
cmp dword [ebp + 0x18], 0
jne 0x42973f
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041c550
mov dword [ebp - 0x1c], 2
mov esi, dword [eax]
mov dword [ebp + 0xc], esi
lea eax, [esi - 8]
cmp eax, 0x583008
je 0x42965e
lock inc dword [eax]
mov dword [ebp - 4], 4
or edi, 0xffffffff
mov ebx, esi
nop word [eax + eax]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp ebx, eax
je 0x429721
push eax
push esi
call fcn.00409e40
add esp, 8
test eax, eax
je 0x429721
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00414490
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 4
cmp eax, 0xffffffff
je 0x4296bb
test eax, 0x400
jne 0x4296fd
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.0041c550
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx]
mov ebx, esi
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff8
mov dword [ebp + 0xc], esi
cmp ecx, 0x583008
je 0x429670
mov eax, edi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x429670
push ecx
call fcn.005128b5
add esp, 4
jmp 0x429668
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
cmp eax, 0x583008
je 0x42971d
lock xadd dword [eax], edi
dec edi
cmp edi, 0xffffffff
jne 0x42971d
push eax
call fcn.005128b5
add esp, 4
mov bl, 1
jmp 0x429741
add ebx, 0xfffffff8
cmp ebx, 0x583008
je 0x42973f
lock xadd dword [ebx], edi
dec edi
cmp edi, 0xffffffff
jne 0x42973f
push ebx
call fcn.005128b5
add esp, 4
xor bl, bl
test byte [ebp - 0x1c], 2
mov dword [ebp - 4], 2
je 0x429756
lea ecx, [ebp + 0x18]
call fcn.00406ce0
test bl, bl
je 0x429791
lea eax, [ebp - 0x10]
push eax
push str.Parent_directory_leads_through_symlink_for_target_file:
lea eax, [ebp + 0xc]
push eax
call fcn.00410010
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.00418eb0
add esp, 8
lea ecx, [ebp + 0xc]
call fcn.0040e7a0
mov edi, dword [ebp - 0x18]
mov ecx, edi
push 1
mov edx, dword [edi]
call dword [edx]
jmp 0x4295a4
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041c550
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.00414c70
lea ecx, [ebp + 0xc]
mov eax, dword [eax]
mov bl, byte [eax]
call fcn.00406ce0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00406ce0
test bl, bl
je 0x429814
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041c550
push eax
push str.Failed_to_create_target_folder:
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 7
push eax
call fcn.00410010
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.00418eb0
add esp, 8
lea ecx, [ebp + 0xc]
call fcn.0040e7a0
lea ecx, [ebp + 0x10]
call fcn.00406ce0
mov edi, dword [ebp - 0x18]
mov ecx, edi
push 1
mov edx, dword [edi]
call dword [edx]
jmp 0x4295a4
mov ebx, dword [ebp - 0x20]
cmp byte [ebx + 0x18], 0
je 0x4298ae
mov edi, dword [ebp - 0x18]
lea ecx, [ebp + 0x10]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x4c]
push 0x5c
push 0x2f
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
push ecx
mov ecx, eax
call fcn.00425770
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xa
call fcn.0040e7a0
push 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004164c0
add esp, 0xc
test al, al
jne 0x4298a0
lea eax, [ebp + 0xc]
push eax
push str.Failed_to_create_symbolic_link:
lea eax, [ebp + 0x14]
push eax
call fcn.00410010
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.00418eb0
add esp, 8
lea ecx, [ebp + 0x14]
call fcn.0040e7a0
lea ecx, [ebp + 0xc]
call fcn.0040e7a0
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
jmp 0x4295a4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0040e7a0
jmp 0x429923
push 0x4000
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040cb60
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xb
cmp byte [eax], 0
je 0x42990a
lea eax, [ebp - 0x10]
push eax
push str.Failed_to_write_to_target_file:
lea eax, [ebp + 0xc]
push eax
call fcn.00410010
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.00418eb0
add esp, 8
lea ecx, [ebp + 0xc]
call fcn.0040e7a0
lea ecx, [ebp - 0x54]
call fcn.0040ee60
mov edi, dword [ebp - 0x18]
mov ecx, edi
push 1
mov edx, dword [edi]
call dword [edx]
jmp 0x4295a4
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.0040fab0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.0040ee60
push dword [ebx + 0x14]
lea ecx, [ebp - 0x10]
push dword [ebx + 0x10]
push 0
push 0
push 0
push 0
call fcn.00426ee0
push 0
push 0
push 0
push 0
push dword [ebx + 0x14]
lea ecx, [ebp - 0x10]
push dword [ebx + 0x10]
call fcn.00426ee0
push 0
push 0
push dword [ebx + 0x14]
lea ecx, [ebp - 0x10]
push dword [ebx + 0x10]
push 0
push 0
call fcn.00426ee0
mov esi, dword [ebp + 8]
mov ecx, edi
push 1
mov dword [esi], 0x583010
mov edx, dword [edi]
call dword [edx]
jmp 0x4295a4
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ebx
call fcn.00414c70
or edi, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff8
cmp ecx, 0x583008
je 0x4299ad
mov eax, edi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4299ad
push ecx
call fcn.005128b5
add esp, 4
cmp esi, 0x583008
je 0x4299c8
lock xadd dword [esi], edi
dec edi
cmp edi, 0xffffffff
jne 0x4299c8
push esi
call fcn.005128b5
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14