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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.1002f740
mov eax, dword [0x10054e34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
push edi
mov edi, ebx
mov dword [ebp - 0x100c], ebx
mov esi, ecx
mov dword [ebp - 0x1014], edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x1000431c
sub edi, ecx
sar edi, 1
cmp edi, 7
jbe 0x1000453f
lea eax, [ebx - 0xe]
lea eax, [eax + edi*2]
push str..7z.001
push eax
call fcn.10037599
pop ecx
pop ecx
test eax, eax
jne 0x1000453f
lea edi, [edi*2 - 6]
mov dword [ebp - 0x1008], 1
mov dword [ebp - 0x1010], edi
mov edi, dword [ebp - 0x1008]
mov dword [esi + 0x18], eax
push 0x800
push ebx
lea eax, [ebp - 0x1004]
push eax
call fcn.100261b9
mov eax, dword [ebp - 0x1010]
cmp eax, 0x1000
jae 0x10004568
xor ecx, ecx
mov word [ebp + eax - 0x1004], cx
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x1014]
jne 0x100043a5
sub ecx, edx
lea eax, [ebp - 0x1004]
sar ecx, 1
push edi
push str._03d
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100043e6
inc dword [esi + 0x18]
inc edi
cmp edi, 0x3e8
jb 0x1000436f
cmp dword [esi + 0x18], 1
jbe 0x1000453f
push dword [esi + 0x14]
call fcn.1002f60f
mov eax, dword [esi + 0x18]
xor ecx, ecx
push 0x10
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002f606
mov dword [esi + 0x14], eax
xor eax, eax
mov ebx, eax
pop ecx
pop ecx
cmp dword [esi + 0x18], eax
jbe 0x10004501
mov edi, dword [ebp - 0x100c]
mov dword [ebp - 0x1008], eax
push 0x800
push edi
lea eax, [ebp - 0x1004]
push eax
call fcn.100261b9
mov eax, dword [ebp - 0x1010]
cmp eax, 0x1000
jae 0x10004568
xor ecx, ecx
mov word [ebp + eax - 0x1004], cx
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x1014]
jne 0x1000446c
sub ecx, edx
lea eax, [ebx + 1]
push eax
sar ecx, 1
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1004]
push str._03d
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi + 0x14]
add esp, 0xc
add eax, dword [ebp - 0x1008]
mov ecx, esi
mov dword [ebp - 0x100c], eax
xor eax, eax
mov byte [esi + 4], al
lea eax, [ebp - 0x1004]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push SysReAllocString
push eax
call fcn.10003f4c
test al, al
je 0x10004511
mov ecx, dword [ebp - 0x100c]
mov eax, dword [esi + 8]
mov dword [ecx], eax
lea eax, [ecx + 8]
push eax
mov ecx, esi
call fcn.1000411f
mov ebx, dword [ebp - 0x1018]
add dword [ebp - 0x1008], 0x10
cmp ebx, dword [esi + 0x18]
jb 0x10004436
mov ecx, dword [esi + 0x14]
mov al, 1
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
mov byte [esi + 0x10], 1
jmp 0x10004555
test ebx, ebx
je 0x1000452d
xor eax, eax
mov edi, eax
mov eax, dword [esi + 0x14]
push dword [eax + edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [edi + 0x10]
sub ebx, 1
jne 0x10004519
push dword [esi + 0x14]
call fcn.1002f60f
xor eax, eax
mov dword [esi + 0x14], eax
xor al, al
pop ecx
jmp 0x10004555
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push SysReAllocString
push ebx
call fcn.10003f4c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f614
mov esp, ebp
pop ebp
ret 0x10
call fcn.1002f8b3
int3