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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
mov edi, ecx
push edi
lea ecx, [ebp - 0x60]
call fcn.0042e48d
lea eax, [ebp + 8]
push eax
call fcn.00427312
xor ebx, ebx
pop ecx
push 2
pop esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 0xfffffff8
mov dword [ebp - 0x20], ebx
jmp 0x45997c
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4887dc
call fcn.0042e2da
add esp, 0xc
test al, al
jne 0x459979
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4887d8
call fcn.0042e2da
add esp, 0xc
test al, al
jne 0x459979
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4877e0
call fcn.0042e2da
add esp, 0xc
test al, al
jne 0x459973
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4814d4
call fcn.0042e2da
add esp, 0xc
test al, al
jne 0x459973
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x483458
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x4598c4
mov dword [ebp - 0x3c], 1
jmp 0x45997c
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4887d4
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x4598e4
or dword [ebp - 0x28], 0x10
jmp 0x45997c
push 3
push dword [ebp + 8]
push 0x4887d0
call fcn.00428263
add esp, 0xc
test al, al
je 0x459913
or dword [ebp - 0x28], 0x10
add dword [ebp + 8], 6
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042f0d0
pop ecx
pop ecx
jmp 0x45997c
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push str._O:N
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x459933
mov dword [ebp - 0xc], 0x20
jmp 0x45997c
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push str._O:_N
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x459953
mov dword [ebp - 0xc], 0x60
jmp 0x45997c
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push str.cur
call fcn.0042e2da
add esp, 0xc
test al, al
je 0x459988
mov dword [ebp - 0x20], 1
jmp 0x45997c
or dword [ebp - 4], 1
jmp 0x45997c
or dword [ebp - 4], esi
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x459835
mov eax, dword [ebp - 0xc]
or dword [ebp - 0x28], eax
lea ecx, [ebp - 0x50]
call fcn.0042c809
mov esi, 0x480934
push esi
lea ecx, [ebp - 0x24]
call fcn.004365ba
push esi
lea ecx, [ebp - 0x10]
call fcn.004365ba
push esi
lea ecx, [ebp - 0x1c]
call fcn.004365ba
push 1
push 0x2c
pop esi
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x60]
call fcn.00440941
push ebx
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.0042ec20
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], eax
jne 0x459a39
movzx eax, word [eax]
cmp ax, bx
je 0x459a39
mov ecx, eax
mov eax, ecx
call fcn.00402a89
test al, al
jne 0x459a39
cmp cx, 0x40
jne 0x459a05
mov dword [ebp - 0x44], 1
jmp 0x459a2a
cmp cx, 0x24
jne 0x459a14
mov dword [ebp - 0x44], 3
jmp 0x459a2a
cmp cx, 0x5c
jne 0x459a20
or dword [ebp - 0x14], 1
jmp 0x459a2a
cmp cx, 0x21
jne 0x459a39
or dword [ebp - 0x14], 2
add dword [ebp - 8], 2
mov eax, dword [ebp - 8]
mov cx, word [eax]
cmp cx, bx
jne 0x4599eb
lea eax, [ebp - 8]
push eax
call fcn.00427312
cmp dword [ebp - 0x14], ebx
pop ecx
je 0x459a57
mov eax, dword [ebp - 8]
jmp 0x459a4f
inc eax
inc eax
cmp word [eax], 0x5c
je 0x459a4d
jmp 0x459a6f
cmp dword [ebp - 4], ebx
jne 0x459a6c
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call fcn.0040d51a
pop ecx
pop ecx
jmp 0x459a78
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00436622
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x459aa1
add dword [ebp + 8], 2
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x60]
call fcn.00440941
push ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0042ec20
add esp, 0xc
cmp dword [ebp - 4], ebx
jne 0x459acf
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x459acf
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 0x34]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x60]
call fcn.00440941
push eax
call fcn.0042ee6d
add esp, 0xc
cmp dword [ebp - 0x34], ebx
jg 0x459adb
mov dword [ebp - 0x34], 0xfffffff8
mov eax, dword [ebp + 8]
cmp word [eax], si
je 0x459aeb
xor esi, esi
inc esi
jmp 0x459d9e
add dword [ebp + 8], 2
lea eax, [ebp + 8]
push eax
call fcn.00427312
pop ecx
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0042c92f
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
mov dword [ebp - 0x38], ebx
je 0x459b17
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
jmp 0x459b1c
mov dword [ebp - 0x2c], ebx
mov eax, ebx
mov esi, dword [ebp - 0x1c]
cmp word [esi], bx
jne 0x459b3b
cmp eax, ebx
je 0x459b3b
mov dx, word [edi + 0x56]
cmp dx, word [eax]
jne 0x459b3b
push ebx
push ebx
push ecx
mov ecx, edi
call fcn.0042ae3a
push 0x32a
lea ecx, [ebp - 0x48]
call fcn.0042c827
mov eax, dword [ebp - 0x48]
and word [edi + 0x7e], 0x8b
add eax, 4
mov dword [ebp - 0xc], eax
mov ax, word [esi]
cmp ax, bx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x54], ebx
jne 0x459b82
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x459b82
mov dx, word [edi + 0x56]
cmp dx, word [ecx]
mov dword [ebp - 8], 0x100
je 0x459b85
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 0x24]
cmp word [ecx], bx
je 0x459b9e
cmp ax, bx
jne 0x459b9e
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x4c], 1
je 0x459ba1
mov dword [ebp - 0x4c], ebx
test byte [ebp - 4], 2
je 0x459cb4
mov esi, 0x4975e4
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0040f2f5
cmp eax, ebx
jne 0x459be1
push esi
mov dword [ebp - 0x54], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0xc]
jmp 0x459d6c
push 0xffffffffffffffff
push dword [eax]
lea ecx, [ebp - 0xc]
call fcn.0042c92f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xc]
mov dword [ebp + 8], esi
mov dword [ebp - 0x3c], ebx
jmp 0x459c9e
test byte [edi + 0x7e], 0xef
jne 0x459ca7
lea eax, [ebp + 8]
mov dword [ebp - 0x40], esi
call fcn.00403ca7
push dword [ebp - 0x40]
mov esi, dword [ebp + 8]
mov ax, word [esi]
push dword [ebp - 0x24]
mov ecx, edi
mov word [ebp - 0x18], ax
mov word [esi], bx
call fcn.0042b2cd
cmp word [ebp - 0x18], 0xd
jne 0x459c44
cmp word [esi + 2], 0xa
jne 0x459c4a
add esi, 4
jmp 0x459c4c
cmp word [ebp - 0x18], bx
je 0x459c4f
inc esi
inc esi
mov dword [ebp + 8], esi
inc dword [ebp + 0x10]
cmp dword [ebp - 8], ebx
je 0x459c76
mov eax, dword [ebp - 0x2c]
add eax, 2
push 0x480934
mov dword [ebp - 0x38], eax
push ebx
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004532c4
jmp 0x459c8d
mov eax, dword [ebp - 0x1c]
cmp word [eax], bx
je 0x459c8d
push dword [ebp + 0x14]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push eax
call fcn.00420f64
mov ax, word [edi + 0x7e]
test ah, 1
je 0x459c9e
and ax, 0xfeff
mov word [edi + 0x7e], ax
cmp word [esi], bx
jne 0x459c02
lea ecx, [ebp - 0x3c]
call fcn.00427365
jmp 0x459bd9
cmp dword [ebp - 4], 1
jne 0x459dcf
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
mov esi, eax
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], ebx
je 0x459d69
test byte [edi + 0x7e], 0xef
jne 0x459d69
lea eax, [ebp + 8]
push eax
call fcn.00403c83
mov eax, dword [ebp + 8]
pop ecx
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.0042c92f
lea eax, [ebp + 8]
push eax
call fcn.00427312
pop ecx
push dword [ebp - 0x20]
mov ecx, edi
push dword [ebp - 0x24]
call fcn.0042b2cd
inc dword [ebp + 0x10]
cmp dword [ebp - 8], ebx
je 0x459d35
mov eax, dword [ebp - 0x2c]
add eax, 2
push 0x480934
mov dword [ebp - 0x38], eax
push ebx
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004532c4
jmp 0x459d4c
mov eax, dword [ebp - 0x1c]
cmp word [eax], bx
je 0x459d4c
push dword [ebp + 0x14]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push eax
call fcn.00420f64
mov ax, word [edi + 0x7e]
test ah, 1
je 0x459d5d
and ax, 0xfeff
mov word [edi + 0x7e], ax
mov esi, dword [ebp + 8]
cmp word [esi], bx
jne 0x459cd2
lea ecx, [ebp - 0x20]
call fcn.00427365
and word [edi + 0x7e], 0x8b
cmp dword [ebp - 0x4c], ebx
je 0x459d8b
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push edi
call fcn.0042e74e
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00427365
lea ecx, [ebp - 0x48]
call fcn.00427365
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x1c]
call fcn.00427365
lea ecx, [ebp - 0x10]
call fcn.00427365
lea ecx, [ebp - 0x24]
call fcn.00427365
lea ecx, [ebp - 0x50]
call fcn.00427365
lea ecx, [ebp - 0x60]
call fcn.00427365
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp - 0x10]
call fcn.0040d003
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00436622
mov esi, dword [ebp - 0x10]
cmp word [esi], bx
je 0x459d71
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
je 0x459e88
cmp dword [ebp - 0x20], ebx
je 0x459e30
lea eax, [ebp - 0x268]
push eax
push 0x104
mov word [ebp - 0x268], bx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x268]
cmp ax, 0x61
mov dword [ebp - 4], eax
jb 0x459e30
cmp ax, 0x7a
ja 0x459e30
and eax, 0xffdf
mov dword [ebp - 4], eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x48]
mov word [esi + 2], bx
mov word [esi], bx
push esi
mov word [eax + 2], bx
push 0x324
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov al, byte [ebp - 0x14]
and al, 2
mov byte [ebp + 0xb], al
mov eax, esi
cmp word [eax], bx
mov dword [ebp - 0x18], esi
je 0x459e75
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x459e62
cmp byte [ebp + 0xb], bl
mov eax, dword [ebp - 0x18]
jne 0x459e80
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
jmp 0x459f2a
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 8], ebx
jne 0x459ea4
mov eax, dword [ebp - 0x1c]
cmp word [eax], bx
jne 0x459ea4
cmp dword [ebp - 0x4c], ebx
je 0x459d71
cmp dword [ebp - 0x3c], ebx
je 0x459ec5
xor eax, eax
mov ax, word [esi]
cmp ax, bx
je 0x459ec5
cmp word [esi + 2], 0x3a
jne 0x459ec5
push eax
call fcn.0046c4b6
test eax, eax
pop ecx
je 0x459f21
lea ecx, [ebp - 0x18]
call fcn.0042c809
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004350b7
add esp, 0xc
push dword [ebp + 0x14]
lea eax, [ebp - 0x34]
push dword [ebp - 0x40]
mov ecx, edi
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
or eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0x2c]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call fcn.004593d4
add dword [ebp + 0x10], eax
mov ax, word [edi + 0x7e]
test ah, 1
je 0x459f19
and ax, 0xfeff
mov word [edi + 0x7e], ax
lea ecx, [ebp - 0x18]
call fcn.00427365
cmp dword [ebp - 0x14], ebx
je 0x459d71
mov esi, dword [ebp + 8]
cmp word [esi], bx
je 0x459d71
cmp dword [ebp - 0x34], ebx
je 0x459d71
test byte [edi + 0x7e], 0xef
jne 0x459d71
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x30]
call fcn.0042c92f
push dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.0042c877
cmp dword [ebp - 0x20], ebx
jne 0x459f9f
test byte [ebp - 0x14], 2
je 0x459f80
dec esi
dec esi
jmp 0x459f76
add esi, 0xfffffffe
cmp word [esi], bx
je 0x459f8e
cmp esi, dword [ebp - 0xc]
mov dword [ebp + 8], esi
ja 0x459f6e
jmp 0x459f8e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 2]
mov dword [ebp + 8], eax
mov esi, dword [ebp - 0x30]
mov ax, word [ebp - 4]
cmp ax, word [esi]
je 0x459f2a
jmp 0x459e8e
mov esi, dword [ebp - 0x30]
mov ax, word [ebp - 4]
mov word [esi], ax
mov dword [ebp - 0x20], ebx
jmp 0x459e8e