Function at 0x10008500
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
mov eax, 0x42bc
call fcn.10008ff0
mov eax, dword [esp + 0x42c0]
push ebx
push ebp
push edi
lea ecx, [esp + 0x50]
xor edi, edi
push eax
push ecx
xor ebx, ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], fcn.10001000
mov dword [esp + 0x28], fcn.10001020
mov dword [esp + 0x40], fcn.10001000
mov dword [esp + 0x44], fcn.10001020
call fcn.10001e90
add esp, 8
test eax, eax
je 0x10008565
push str.can_not_open_input_file
call fcn.100084e0
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x42bc
ret
lea edx, [esp + 0x48]
push edx
call fcn.10002140
lea eax, [esp + 0x2b0]
push edi
push eax
call fcn.100047a0
lea edx, [esp + 0x2b8]
lea ecx, [esp + 0x54]
push edx
mov dword [esp + 0x2cc], ecx
call fcn.10004930
add esp, 0x10
call fcn.100010e0
lea eax, [esp + 0x54]
push eax
call fcn.100023e0
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x2b4]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.100024d0
mov ebp, eax
add esp, 0x14
cmp ebp, edi
jne 0x10008864
mov eax, dword [esp + 0x70]
push esi
cmp eax, edi
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edi
jbe 0x10008850
mov dword [esp + 0x10], edi
jmp 0x100085fb
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
xor eax, eax
add ecx, edx
push eax
lea edx, [esp + 0x5c]
push edi
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ecx
call fcn.10002490
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp esi, eax
jbe 0x10008650
push ebx
push 0
call fcn.10001020
lea eax, [esi + esi]
mov dword [esp + 0x3c], esi
push eax
push 0
call fcn.10001000
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10008830
push ebx
lea ecx, [esp + 0x5c]
push edi
push ecx
call fcn.10002490
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x20
push edx
push str.Extracting
call dword [sym.imp.MSVCRT.dll_fputs]
push ebx
call fcn.10008920
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x10008850
mov eax, dword [esp + 0x2c]
mov cl, byte [eax + 0x19]
test cl, cl
je 0x1000869f
push 0x10054c3c
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
jmp 0x100086e2
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x5c]
push eax
push ecx
lea edx, [esp + 0x2cc]
push edi
lea eax, [esp + 0x78]
push edx
push eax
call fcn.100044e0
mov ebp, eax
add esp, 0x28
test ebp, ebp
jne 0x10008850
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xaa]
mov word [esp + 0xa8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x42d4]
lea edx, [esp + 0xa8]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [esp + 0xb0]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
cmp word [esp + 0xa8], 0
je 0x1000876a
lea esi, [esp + 0xa8]
lea edi, [esp + 0xa8]
cmp word [esi], 0x2f
jne 0x1000875f
lea ecx, [esp + 0xa8]
mov word [esi], 0
push ecx
call fcn.100088f0
add esp, 4
mov word [esi], 0x5c
add edi, 2
mov esi, edi
cmp word [edi], 0
jne 0x1000873f
mov esi, dword [esp + 0x2c]
mov al, byte [esi + 0x19]
test al, al
je 0x10008792
lea edx, [esp + 0xa8]
push edx
call fcn.100088f0
push 0x10054c38
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x1000880e
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.10008910
add esp, 8
test eax, eax
jne 0x10008837
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x38]
add edx, ecx
push eax
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.10002020
add esp, 0xc
test eax, eax
jne 0x1000883e
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x1000883e
lea edx, [esp + 0x28]
push edx
call fcn.10001f70
add esp, 4
test eax, eax
jne 0x1000883e
mov al, byte [esi + 0x1d]
test al, al
je 0x1000880e
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0xa8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
inc eax
add edx, 0x20
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jb 0x100085f7
jmp 0x10008850
mov ebp, 2
jmp 0x10008850
push 0x10054c34
jmp 0x10008843
push 0x10054c30
call fcn.100084e0
add esp, 4
mov ebp, 0xb
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
call dword [esp + 0x2c]
add esp, 8
xor edi, edi
pop esi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.10002410
push ebx
push edi
call fcn.10001020
lea eax, [esp + 0x60]
push eax
call fcn.10001f70
add esp, 0x14
cmp ebp, edi
je 0x100088de
cmp ebp, 4
push 0x10054c30
jne 0x100088a7
call fcn.100084e0
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x42bc
ret
cmp ebp, 2
jne 0x100088be
call fcn.100084e0
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x42bc
ret
cmp ebp, 3
jne 0x100088d5
call fcn.100084e0
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x42bc
ret
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x42bc
ret