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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push ecx
lea ecx, [ebp - 0x84]
call fcn.004391ff
lea eax, [ebp + 8]
push eax
call fcn.00431c97
xor ebx, ebx
xor esi, esi
pop ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
xor edi, edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], 0xfffffff8
mov dword [ebp - 0x24], ebx
jmp 0x46bec7
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4a0fbc
call fcn.00438eee
add esp, 0xc
test al, al
jne 0x46bec3
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4a0fb8
call fcn.00438eee
add esp, 0xc
test al, al
jne 0x46bec3
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x49c2ac
call fcn.00438eee
add esp, 0xc
test al, al
jne 0x46bebd
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x498920
call fcn.00438eee
add esp, 0xc
test al, al
jne 0x46bebd
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x49ab10
call fcn.00438eee
add esp, 0xc
test al, al
je 0x46bdc0
mov dword [ebp - 0x3c], 1
jmp 0x46bec7
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4a0fb4
call fcn.00438eee
add esp, 0xc
test al, al
je 0x46bddf
or esi, 0x10
jmp 0x46bec7
push 3
push dword [ebp + 8]
push 0x4a0fb0
call fcn.00432c59
add esp, 0xc
test al, al
je 0x46be10
add dword [ebp + 8], 6
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
or esi, 0x10
call fcn.00439fac
pop ecx
pop ecx
jmp 0x46bec7
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push str._O:N
call fcn.00438eee
add esp, 0xc
test al, al
je 0x46be2f
push 0x20
pop edi
jmp 0x46bec7
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push str._O:_N
call fcn.00438eee
add esp, 0xc
test al, al
je 0x46be4a
push 0x60
jmp 0x46be29
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push str.cur
call fcn.00438eee
add esp, 0xc
test al, al
je 0x46be6a
mov dword [ebp - 0x24], 1
jmp 0x46bec7
push 6
push dword [ebp + 8]
push str._size:
call fcn.00432c59
add esp, 0xc
test al, al
je 0x46bed3
add dword [ebp + 8], 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043bfa0
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp ax, bx
pop ecx
pop ecx
je 0x46bed3
call fcn.00431c5f
test al, al
jne 0x46bec7
add dword [ebp + 8], 2
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043bfa0
jmp 0x46be09
or dword [ebp - 0x14], 1
jmp 0x46bec7
or dword [ebp - 0x14], 2
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x46bd31
or esi, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x78], esi
call fcn.0043717e
mov esi, 0x497994
push esi
lea ecx, [ebp - 0x20]
call fcn.004419bc
push esi
lea ecx, [ebp - 0x18]
call fcn.004419bc
push esi
lea ecx, [ebp - 0x1c]
call fcn.004419bc
push 1
push 0x2c
pop esi
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
call fcn.00443720
push ebx
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.00439b04
mov eax, dword [ebp - 0x48]
add esp, 0xc
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], eax
jne 0x46bf86
movzx eax, word [eax]
cmp ax, bx
je 0x46bf86
xor edi, edi
mov ecx, eax
inc edi
mov eax, ecx
call fcn.00431c5f
test al, al
jne 0x46bf89
cmp cx, 0x40
jne 0x46bf51
mov dword [ebp - 0x40], edi
jmp 0x46bf75
cmp cx, 0x24
jne 0x46bf60
mov dword [ebp - 0x40], 3
jmp 0x46bf75
cmp cx, 0x5c
jne 0x46bf6b
or dword [ebp - 0x10], edi
jmp 0x46bf75
cmp cx, 0x21
jne 0x46bf89
or dword [ebp - 0x10], 2
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
mov cx, word [eax]
cmp cx, bx
jne 0x46bf3b
jmp 0x46bf89
xor edi, edi
inc edi
lea eax, [ebp - 0xc]
push eax
call fcn.00431c97
cmp dword [ebp - 0x10], ebx
pop ecx
je 0x46bfa7
mov eax, dword [ebp - 0xc]
jmp 0x46bf9f
inc eax
inc eax
cmp word [eax], 0x5c
je 0x46bf9d
jmp 0x46bfbf
cmp dword [ebp - 0x14], ebx
jne 0x46bfbc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
call fcn.0040fa85
pop ecx
pop ecx
jmp 0x46bfc8
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00441a24
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x46bff3
add dword [ebp + 8], 2
push edi
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
call fcn.00443720
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00439b04
add esp, 0xc
cmp dword [ebp - 0x14], ebx
jne 0x46c023
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x46c023
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 0x74]
push eax
push edi
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
call fcn.00443720
push eax
call fcn.00439d51
add esp, 0xc
cmp dword [ebp - 0x74], ebx
jg 0x46c02f
mov dword [ebp - 0x74], 0xfffffff8
mov eax, dword [ebp + 8]
cmp word [eax], si
je 0x46c03e
mov esi, edi
jmp 0x46c569
add dword [ebp + 8], 2
lea eax, [ebp + 8]
push eax
call fcn.00431c97
pop ecx
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004372a4
mov esi, dword [ebp - 0x1c]
cmp word [esi], 0x2a
jne 0x46c06c
cmp word [esi + 2], bx
mov byte [ebp - 1], 1
je 0x46c06f
mov byte [ebp - 1], bl
lea ecx, [ebp - 0x5c]
call fcn.0043717e
cmp byte [ebp - 1], bl
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
jne 0x46c08f
push 0xffffffffffffffff
push dword [ebp - 0x20]
lea ecx, [ebp - 0x5c]
call fcn.004372a4
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
mov dword [ebp - 0x38], ebx
je 0x46c09d
mov eax, dword [ecx]
jmp 0x46c09f
xor eax, eax
cmp word [esi], bx
mov dword [ebp - 0x30], eax
jne 0x46c0c1
cmp eax, ebx
je 0x46c0c1
mov edx, dword [ebp - 8]
mov si, word [edx + 0x5a]
cmp si, word [eax]
jne 0x46c0c1
push ebx
push ebx
push ecx
mov ecx, edx
call fcn.0043669b
push 0x32a
lea ecx, [ebp - 0x4c]
call fcn.0043719c
mov eax, dword [ebp - 8]
and word [eax + 0x88], 0x8b
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
cmp ax, bx
mov esi, dword [ebp - 0x4c]
lea edi, [esi + 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x50], ebx
jne 0x46c111
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x46c111
mov edx, dword [ebp - 8]
mov dx, word [edx + 0x5a]
cmp dx, word [ecx]
mov dword [ebp - 0xc], 0x100
je 0x46c114
mov dword [ebp - 0xc], ebx
mov ecx, dword [ebp - 0x20]
cmp word [ecx], bx
je 0x46c12d
cmp ax, bx
jne 0x46c12d
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x44], 1
je 0x46c130
mov dword [ebp - 0x44], ebx
test byte [ebp - 0x14], 2
je 0x46c250
mov esi, 0x4b069c
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x18]
call fcn.00411179
cmp eax, ebx
jne 0x46c171
push esi
mov dword [ebp - 0x50], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x10]
jmp 0x46c317
push 0xffffffffffffffff
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.004372a4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x10]
mov dword [ebp + 8], esi
mov dword [ebp - 0x3c], ebx
jmp 0x46c23a
mov eax, dword [ebp - 8]
test byte [eax + 0x88], 0xef
jne 0x46c243
lea eax, [ebp + 8]
mov dword [ebp - 0x34], esi
call fcn.00410bc4
push dword [ebp - 0x34]
mov esi, dword [ebp + 8]
mov di, word [esi]
push dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov word [esi], bx
call fcn.00436b54
cmp di, 0xd
jne 0x46c1d6
cmp word [esi + 2], 0xa
jne 0x46c1db
add esi, 4
jmp 0x46c1dd
cmp di, bx
je 0x46c1e0
inc esi
inc esi
mov dword [ebp + 8], esi
inc dword [ebp + 0x10]
cmp dword [ebp - 0xc], ebx
je 0x46c208
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
add eax, 2
push 0x497994
mov dword [ebp - 0x38], eax
push ebx
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
call fcn.00465d62
jmp 0x46c220
mov eax, dword [ebp - 0x1c]
cmp word [eax], bx
je 0x46c220
push dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp + 0xc]
push eax
call fcn.00427548
mov ecx, dword [ebp - 8]
mov ax, word [ecx + 0x88]
test ah, 1
je 0x46c23a
and ax, 0xfeff
mov word [ecx + 0x88], ax
cmp word [esi], bx
jne 0x46c192
lea ecx, [ebp - 0x3c]
call fcn.00431c4c
jmp 0x46c169
cmp dword [ebp - 0x14], 1
jne 0x46c341
mov eax, dword [ebp - 0x18]
cmp word [eax], bx
mov esi, eax
mov dword [ebp + 8], esi
mov dword [ebp - 0x24], ebx
je 0x46c314
mov eax, dword [ebp - 8]
test byte [eax + 0x88], 0xef
jne 0x46c314
lea eax, [ebp + 8]
push eax
call fcn.004047e3
mov eax, dword [ebp + 8]
pop ecx
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004372a4
lea eax, [ebp + 8]
push eax
call fcn.00431c97
mov esi, dword [ebp - 8]
pop ecx
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x20]
call fcn.00436b54
inc dword [ebp + 0x10]
cmp dword [ebp - 0xc], ebx
je 0x46c2da
mov eax, dword [ebp - 0x30]
add eax, 2
push 0x497994
mov dword [ebp - 0x38], eax
push ebx
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00465d62
jmp 0x46c2f1
mov eax, dword [ebp - 0x1c]
cmp word [eax], bx
je 0x46c2f1
push dword [ebp + 0x14]
mov ecx, esi
push ebx
push dword [ebp + 0xc]
push eax
call fcn.00427548
mov ax, word [esi + 0x88]
test ah, 1
je 0x46c308
and ax, 0xfeff
mov word [esi + 0x88], ax
mov esi, dword [ebp + 8]
cmp word [esi], bx
jne 0x46c26e
lea ecx, [ebp - 0x24]
call fcn.00431c4c
mov ecx, dword [ebp - 8]
and word [ecx + 0x88], 0x8b
cmp byte [ebp - 1], bl
je 0x46c53a
push dword [ebp - 0x5c]
push dword [ebp - 0x20]
call fcn.00436b54
jmp 0x46c54e
push dword [ebp - 0x18]
call fcn.0040f738
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00441a24
mov eax, dword [ebp - 0x18]
cmp word [eax], bx
je 0x46c31c
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
je 0x46c3f9
cmp dword [ebp - 0x24], ebx
je 0x46c3a2
lea eax, [ebp - 0x28c]
push eax
push 0x104
mov word [ebp - 0x28c], bx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x28c]
cmp ax, 0x61
mov dword [ebp - 0x14], eax
jb 0x46c3a2
cmp ax, 0x7a
ja 0x46c3a2
and eax, 0xffdf
mov dword [ebp - 0x14], eax
mov word [edi + 2], bx
mov word [edi], bx
push edi
mov word [esi + 2], bx
push 0x324
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov al, byte [ebp - 0x10]
and al, 2
cmp word [edi], bx
mov dword [ebp - 0x2c], edi
mov byte [ebp + 0xb], al
mov esi, edi
je 0x46c3e1
push esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x46c3ce
cmp byte [ebp + 0xb], bl
je 0x46c3f1
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 8], eax
jmp 0x46c4a9
mov dword [ebp + 8], edi
jmp 0x46c4a9
mov esi, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0xc], ebx
jne 0x46c417
mov eax, dword [ebp - 0x1c]
cmp word [eax], bx
jne 0x46c417
cmp dword [ebp - 0x44], ebx
je 0x46c31c
cmp dword [ebp - 0x3c], ebx
je 0x46c438
xor eax, eax
mov ax, word [esi]
cmp ax, bx
je 0x46c438
cmp word [esi + 2], 0x3a
jne 0x46c438
push eax
call fcn.00482b12
test eax, eax
pop ecx
je 0x46c4a0
lea ecx, [ebp - 0x2c]
call fcn.0043717e
push ebx
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0047675f
add esp, 0xc
push dword [ebp + 0x14]
mov esi, dword [ebp - 8]
push dword [ebp - 0x34]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x78]
mov ecx, esi
or eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x5c]
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
push eax
call fcn.0046b78d
add dword [ebp + 0x10], eax
mov ax, word [esi + 0x88]
test ah, 1
je 0x46c498
and ax, 0xfeff
mov ecx, esi
mov word [ecx + 0x88], ax
lea ecx, [ebp - 0x2c]
call fcn.00431c4c
cmp dword [ebp - 0x10], ebx
je 0x46c31c
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x46c31c
lea eax, [ebp - 0x74]
cmp dword [eax], ebx
je 0x46c31c
mov eax, dword [ebp - 8]
test byte [eax + 0x88], 0xef
jne 0x46c31c
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x28]
call fcn.004372a4
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
call fcn.004371ec
cmp dword [ebp - 0x24], ebx
jne 0x46c528
test byte [ebp - 0x10], 2
je 0x46c509
dec esi
dec esi
jmp 0x46c500
add esi, 0xfffffffe
cmp word [esi], bx
je 0x46c517
cmp esi, edi
mov dword [ebp + 8], esi
ja 0x46c4f8
jmp 0x46c517
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 2]
mov dword [ebp + 8], eax
mov esi, dword [ebp - 0x28]
mov ax, word [ebp - 0x14]
cmp ax, word [esi]
je 0x46c4a9
jmp 0x46c401
mov esi, dword [ebp - 0x28]
mov ax, word [ebp - 0x14]
mov word [esi], ax
mov dword [ebp - 0x24], ebx
jmp 0x46c401
cmp dword [ebp - 0x44], ebx
je 0x46c54e
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push ecx
call fcn.004394ef
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00431c4c
lea ecx, [ebp - 0x4c]
call fcn.00431c4c
lea ecx, [ebp - 0x5c]
call fcn.00431c4c
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x1c]
call fcn.00431c4c
lea ecx, [ebp - 0x18]
call fcn.00431c4c
lea ecx, [ebp - 0x20]
call fcn.00431c4c
lea ecx, [ebp - 0x48]
call fcn.00431c4c
lea ecx, [ebp - 0x84]
call fcn.00431c4c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10