Function at 0x1006f6ce
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], 0xd4e793
push edi
mov esi, edx
mov dword [ebp - 0xc], ebx
mov edi, ecx
jmp 0x1006f6f7
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x30], 0x102071b1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x1006f6e9
mov dword [ebp - 8], ebx
jmp 0x1006f75a
mov dword [ebp - 0x14], 0x9be5411a
mov dword [ebp - 0xc], ebx
jmp 0x1006f718
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x28], ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ecx
jl 0x1006f70e
mov eax, dword [ebp - 8]
sub eax, 4
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jne 0x1006f72f
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, 0x859495e0
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp ecx, eax
mov eax, dword [ebp - 8]
sbb ecx, ecx
xor edx, edx
neg ecx
cmp eax, ecx
mov eax, dword [ebp - 8]
setge dl
mov dword [ebp + eax*4 - 0x30], edx
inc dword [ebp - 8]
xor ecx, ecx
inc ecx
cmp dword [ebp - 8], ecx
jle 0x1006f702
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 8], 0x3b26bdde
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0xcf33f23e
mov dword [ebp - 0xc], 5
mov dword [ebp - 0x18], 0xe53494ab
mov dword [ebp - 0x14], 0xfd8c6581
mov dword [ebp - 8], 9
cmp dword [ebp - 8], 2
jg 0x1006f7e8
mov dword [ebp - 0x1c], 0xd9b4e94f
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x20], 0x9b8f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
add ecx, 0xffff0004
add eax, ecx
mov dword [ebp - 0x20], eax
dec dword [ebp - 8]
cmp dword [ebp - 8], 2
push 1
pop ecx
jle 0x1006f7a2
cmp dword [ebp - 0xc], ebx
jne 0x1006f7f4
cmp dword [ebp - 0x10], ebx
jne 0x1006f7f4
mov ecx, ebx
mov eax, dword [ebp - 8]
neg ecx
neg eax
xor edx, edx
cmp eax, ecx
mov eax, dword [ebp - 0x10]
setle dl
xor ecx, ecx
cmp edx, eax
setg cl
cmp ecx, 0x5de082ad
jg 0x1006f817
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add ecx, 0xfffffffc
add eax, ecx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xa87013dc
mov dword [ebp - 0x14], 0x94d03572
mov dword [ebp - 0x14], 0xf88039d6
mov dword [ebp - 0x24], 0x2184e5a9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
sub ecx, 5
cmp ecx, eax
setge dl
xor ecx, ecx
add edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
neg eax
cmp eax, edx
setl cl
sub ecx, dword [ebp - 8]
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp ecx, eax
setle dl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1006f8a4
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp dword [edi + 0x14], 8
jb 0x1006f8ac
mov edi, dword [edi]
mov dword [ebp - 0x6c], edi
push 3
pop edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0xc], ebx
jmp 0x1006f8d5
cmp dword [ebp - 0xc], ebx
jne 0x1006f8db
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1006f8d2
push 0x7cb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xb
jle 0x1006f8ba
cmp dword [esi + 0x10], ebx
jne 0x1006f8e5
mov dword [ebp - 0x68], ebx
jmp 0x1006f8f0
cmp dword [esi + 0x14], 8
jb 0x1006f8ed
mov esi, dword [esi]
mov dword [ebp - 0x68], esi
mov dword [ebp - 8], 0xe91a049f
mov dword [ebp - 8], 0xffffffed
cmp dword [ebp - 8], 0xffffffe2
jl 0x1006f975
mov esi, 0x65653d42
mov dword [ebp - 0x10], 0x22124f84
mov dword [ebp - 0x10], 0xe
jmp 0x1006f966
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0xc], ebx
jmp 0x1006f95d
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], 0xbfc88eb9
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x14], ebx
jl 0x1006f95a
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1006f955
push ebx
push 0xd0f
push ebx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
dec dword [ebp - 0x14]
jns 0x1006f940
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffe6
jl 0x1006f925
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xf
jge 0x1006f919
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffe2
jge 0x1006f909
mov dword [ebp - 8], ebx
jmp 0x1006f993
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1006f990
push ebx
push 0x2281
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffec
jne 0x1006f97a
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x64], ebx
push eax
push 0x2e45
push 0x109d3
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], ebx
call fcn.100290d8
pop ecx
pop ecx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret