Function at 0x10855c6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x10855df
xor eax, eax
inc eax
jmp 0x1085c32
push esi
push dword [edi + 0x18]
mov esi, dword [sym.imp.msvcrt.dll_free]
mov dword [edi], ebx
mov word [edi + 4], bx
call esi
push dword [edi + 0x1c]
call esi
push dword [ebp + 0x28]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
call esi
push dword [ebp + 0xc]
lea ebx, [eax + eax + 2]
call esi
push dword [ebp + 0x10]
lea ebx, [ebx + eax*2 + 2]
call esi
push dword [ebp + 0x18]
lea ebx, [ebx + eax*2 + 2]
call esi
push dword [ebp + 0x20]
lea ebx, [ebx + eax*2 + 2]
call esi
push dword [ebp + 0x1c]
lea ebx, [ebx + eax*2 + 2]
call esi
lea eax, [ebx + eax*2 + 0x350]
add eax, dword [ebp + 0x34]
mov ecx, 0x200
add eax, dword [ebp + 0x38]
add esp, 0x20
cmp eax, ecx
mov dword [ebp - 4], eax
jge 0x1085655
mov dword [ebp - 4], ecx
mov eax, ecx
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
pop ecx
jne 0x1085675
mov dword [edi], 0xfffffff6
push 3
jmp 0x1085c30
mov ecx, dword [ebp - 4]
push dword [ebp + 0x28]
mov dword [ebx], ecx
mov dword [ebx + 8], 0x510
mov dword [ebx + 4], ExitThread
mov word [edi + reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [edi + 0x2e], ax
mov dword [edi + 0x70], eax
mov dword [edi + 0x18], ebx
call esi
push dword [ebp + 0xc]
lea eax, [eax + eax + 2]
movzx eax, ax
mov dword [ebx + 0x118], eax
call esi
push dword [ebp + 0x10]
lea eax, [eax + eax + 2]
movzx eax, ax
mov dword [ebx + 0x114], eax
call esi
push dword [ebp + 0x18]
lea eax, [eax + eax + 2]
movzx eax, ax
mov dword [ebx + 0x110], eax
call esi
push dword [ebp + 0x20]
lea eax, [eax + eax + 2]
movzx eax, ax
mov dword [ebx + reloc.KERNEL32.dll_SetErrorMode], eax
call esi
push dword [ebp + 0x1c]
lea eax, [eax + eax + 2]
movzx eax, ax
mov dword [ebx + 0x108], eax
call esi
lea eax, [eax + eax + 2]
movzx ecx, ax
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 0x34]
add eax, ebx
mov dword [ebx + 0x120], eax
add eax, dword [ebx + 0x114]
mov edx, dword [ebp + 0x38]
mov dword [ebx + reloc.KERNEL32.dll_GetTapeStatus], eax
add eax, dword [ebx + 0x110]
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x128], eax
add eax, dword [ebx + reloc.KERNEL32.dll_SetErrorMode]
mov dword [ebx + 0x100], esi
mov dword [ebx + 0x12c], eax
add eax, dword [ebx + 0x118]
mov dword [ebx + 0x104], edx
mov dword [ebx + reloc.KERNEL32.dll_PrepareTape], eax
add eax, ecx
movzx ecx, word [ebp + 0x40]
mov dword [ebx + 0x134], eax
add eax, dword [ebx + 0x108]
mov dword [ebx + 0x30], ecx
movzx ecx, word [ebp + 0x44]
mov dword [ebx + reloc.KERNEL32.dll_FindNextVolumeMountPointW], eax
add eax, esi
mov esi, dword [ebp + 0xa4]
mov dword [ebx + 0x13c], eax
add eax, edx
mov dword [ebx + 0xf8], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebp + 0x94]
mov dword [ebx + 0xfc], 0x20a
mov dword [ebx + 0x28], eax
lea edi, [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x18
xor esi, esi
mov dword [ebx + 0xac], ecx
mov ecx, dword [ebp + 0x50]
mov dword [ebx + 0x90], esi
mov dword [ebx + 0x94], esi
cmp dword [ebp + 0x68], esi
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp + 0x54]
mov dword [ebx + 0xa8], ecx
je 0x10857eb
mov ecx, dword [ebp + 0x64]
or byte [ebx + 0x3d], 0x80
mov dword [ebx + 0x90], ecx
mov ecx, dword [ebp + 0x60]
mov dword [ebx + 0x94], ecx
cmp dword [ebp + 0x88], esi
je 0x10857f7
or byte [ebx + 0x3e], 0x80
cmp dword [ebp + 0x90], esi
je 0x1085803
or byte [ebx + 0x3e], 0x40
cmp dword [ebp + 0x8c], esi
je 0x108580f
or byte [ebx + 0x3e], 0x20
cmp dword [ebp + 0x58], esi
je 0x1085818
or byte [ebx + 0x3d], 0x20
cmp dword [ebp + 0x5c], esi
je 0x1085821
or byte [ebx + 0x3d], 0x40
cmp dword [ebp + 0x6c], esi
je 0x108582a
or dword [ebx + 0x3c], 0x40
xor ecx, ecx
mov cx, word [ebx + 0x2c]
push ecx
xor ecx, ecx
mov cx, word [ebx + 0x30]
push ecx
push eax
call fcn.0108647e
test eax, eax
je 0x1085846
or dword [ebx + 0x3c], 0x40
xor eax, eax
mov ax, word [ebx + 0x2c]
push eax
xor eax, eax
mov ax, word [ebx + 0x30]
push eax
push dword [ebx + 0x28]
call fcn.010864fb
test eax, eax
je 0x1085864
or dword [ebx + 0x3c], 0x20
test byte [ebx + 0x3c], 0x60
je 0x1085880
xor eax, eax
mov ax, word [ebx + 0x2c]
push eax
xor eax, eax
mov ax, word [ebx + 0x30]
push eax
push dword [ebx + 0x28]
call fcn.01084dfd
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], si
je 0x108588d
or byte [ebx + 0x3d], 0x10
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc9c]
mov dword [ebx + 0x5c], eax
mov eax, dword [edi + 0xca0]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x68], esi
mov eax, dword [edi + 0xca4]
push ebx
push edi
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], esi
call fcn.01084ea6
test eax, eax
je 0x10858d1
push ebx
call fcn.01084c2f
mov dword [ebp + 0x40], 2
jmp 0x1085bca
mov ecx, dword [ebx + 0x114]
cmp ecx, esi
push 2
pop edx
je 0x1085910
mov edi, dword [ebx + 0x120]
mov esi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x114]
mov ecx, dword [ebx + 0x120]
mov edi, dword [ebp + 8]
dec eax
shr eax, 1
and word [ecx + eax*2], 0
xor esi, esi
jmp 0x108591f
mov eax, dword [ebx + 0x120]
mov dword [ebx + 0x114], edx
mov word [eax], si
mov ecx, dword [ebx + 0x110]
cmp ecx, esi
je 0x108595b
mov edi, dword [ebx + reloc.KERNEL32.dll_GetTapeStatus]
mov esi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x110]
mov ecx, dword [ebx + reloc.KERNEL32.dll_GetTapeStatus]
mov edi, dword [ebp + 8]
dec eax
shr eax, 1
and word [ecx + eax*2], 0
xor esi, esi
jmp 0x108596a
mov eax, dword [ebx + reloc.KERNEL32.dll_GetTapeStatus]
mov dword [ebx + 0x110], edx
mov word [eax], si
mov eax, dword [ebx + reloc.KERNEL32.dll_SetErrorMode]
cmp eax, esi
je 0x10859a1
shr eax, 1
push eax
push dword [ebp + 0x18]
push dword [ebx + 0x128]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebx + reloc.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebx + 0x128]
add esp, 0xc
dec eax
shr eax, 1
push 2
mov word [ecx + eax*2], si
pop edx
jmp 0x10859b0
mov eax, dword [ebx + 0x128]
mov dword [ebx + reloc.KERNEL32.dll_SetErrorMode], edx
mov word [eax], si
mov eax, dword [ebx + 0x108]
cmp eax, esi
je 0x10859e7
shr eax, 1
push eax
push dword [ebp + 0x20]
push dword [ebx + 0x134]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebx + 0x108]
mov ecx, dword [ebx + 0x134]
add esp, 0xc
dec eax
shr eax, 1
push 2
mov word [ecx + eax*2], si
pop edx
jmp 0x10859f6
mov eax, dword [ebx + 0x134]
mov dword [ebx + 0x108], edx
mov word [eax], si
mov eax, dword [ebx + 0x11c]
cmp eax, esi
je 0x1085a2d
shr eax, 1
push eax
push dword [ebp + 0x1c]
push dword [ebx + reloc.KERNEL32.dll_PrepareTape]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebx + 0x11c]
mov ecx, dword [ebx + reloc.KERNEL32.dll_PrepareTape]
add esp, 0xc
shr eax, 1
push 2
mov word [ecx + eax*2 - 2], si
pop edx
jmp 0x1085a3c
mov eax, dword [ebx + reloc.KERNEL32.dll_PrepareTape]
mov dword [ebx + 0x11c], edx
mov word [eax], si
mov eax, dword [ebx + 0x118]
cmp eax, esi
je 0x1085a70
shr eax, 1
push eax
push dword [ebp + 0x28]
push dword [ebx + 0x12c]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebx + 0x118]
mov ecx, dword [ebx + 0x12c]
add esp, 0xc
shr eax, 1
mov word [ecx + eax*2 - 2], si
jmp 0x1085a7f
mov eax, dword [ebx + 0x12c]
mov dword [ebx + 0x118], edx
mov word [eax], si
mov ecx, dword [ebx + 0x100]
cmp ecx, esi
je 0x1085aa5
mov edi, dword [ebx + reloc.KERNEL32.dll_FindNextVolumeMountPointW]
mov esi, dword [ebp + 0x2c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebx + 0x104]
cmp ecx, esi
je 0x1085acb
mov edi, dword [ebx + 0x13c]
mov esi, dword [ebp + 0x30]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x1085b00
mov eax, dword [ebx + 0xfc]
shr eax, 1
push eax
push dword [ebp + 0x14]
push dword [ebx + 0xf8]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebx + 0xfc]
mov ecx, dword [ebx + 0xf8]
add esp, 0xc
shr eax, 1
mov word [ecx + eax*2 - 2], si
jmp 0x1085b09
mov eax, dword [ebx + 0xf8]
mov word [eax], si
cmp dword [ebp + 0x84], esi
mov eax, dword [ebp + 0xa0]
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp + 0x70]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x48]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebx + 0x7c], eax
movzx eax, word [ebp + 0x98]
mov dword [ebx + 0x74], eax
movzx eax, word [ebp + 0x9c]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp + 0x74]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x78]
mov dword [ebx + 0x14], eax
je 0x1085b56
or byte [ebx + 0x3e], 4
cmp dword [ebp + 0x80], esi
je 0x1085b62
or byte [ebx + 0x3e], 8
cmp dword [ebp + 0x7c], esi
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x58], esi
je 0x1085b81
or byte [ebx + 0x3d], 0xc
mov word [edi + 0x30], si
cmp word [edi + 0x2c], si
je 0x1085b8b
or dword [ebx + 0x3c], 0x40
cmp word [edi + 0x30], si
jne 0x1085b95
or byte [ebx + 0x3d], 4
mov eax, dword [edi + 0xc9c]
mov dword [ebx + 0x5c], eax
mov eax, dword [edi + 0xca0]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x68], esi
mov eax, dword [edi + 0xca4]
push edi
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], esi
call fcn.01082047
test eax, eax
je 0x1085bda
mov dword [ebp + 0x40], 3
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 0x40]
pop ecx
mov dword [edi + 0x18], esi
jmp 0x1085c31
xor eax, eax
inc eax
cmp word [edi + 0x30], si
mov dword [edi + 0xc7c], esi
mov dword [edi + 0x50], esi
mov dword [edi + 0x48], esi
mov dword [edi + 0x58], esi
mov dword [edi + 0x6c], esi
mov word [edi + 4], ax
mov dword [edi + 0x5c], esi
je 0x1085c02
test byte [ebx + 0x3d], 8
je 0x1085c31
mov eax, dword [edi + 0x18]
push dword [eax]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
pop ecx
mov ecx, dword [esi]
push dword [ebp + 8]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010852d6
push 2
pop eax
pop esi
pop edi
pop ebx
leave
ret 0xa0