Function at 0x489270
Capabilities:
Get common file path
Get disk information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57496b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x5ed216], 0
je 0x489681
xor eax, eax
mov byte [0x5ed216], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0x4000
push 0x58efac
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x48958a
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x250]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489312
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24c]
call fcn.00408f30
push dword [ebp - 0x250]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ax, word [0x587888]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x238], 8
movups xmm0, xmmword [0x587878]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push 9
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
call fcn.00420fc8
add esp, 0xc
test eax, eax
je 0x489630
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push 2
cmovae eax, dword [ebp - 0x24c]
push 0x58788c
push eax
call fcn.00420fc8
mov edx, dword [ebp - 0x238]
add esp, 0xc
mov ecx, dword [ebp - 0x24c]
test eax, eax
jne 0x4893ce
cmp dword [ebp - 0x23c], 3
jbe 0x4893ce
cmp edx, 8
lea eax, [ebp - 0x24c]
cmovae eax, ecx
cmp word [eax + 4], 0x3f
jne 0x48963c
cmp edx, 8
lea eax, [ebp - 0x24c]
push 8
cmovae eax, ecx
push 0x587894
push eax
call fcn.00420fc8
add esp, 0xc
test eax, eax
je 0x489630
mov esi, dword [ebp - 0x238]
lea edx, [ebp - 0x24c]
mov edi, dword [ebp - 0x24c]
cmp esi, 8
mov eax, dword [ebp - 0x23c]
cmovae edx, edi
test eax, eax
je 0x489424
mov ecx, edx
cmp word [ecx], 0x3a
je 0x489449
add ecx, 2
sub eax, 1
jne 0x489416
mov dword [ebp - 4], 2
cmp esi, 8
jb 0x489681
lea eax, [esi + 1]
push eax
push edi
lea ecx, [ebp - 0x24c]
call fcn.0040a2e0
jmp 0x489681
sub ecx, edx
sar ecx, 1
je 0x489424
cmp ecx, 0xffffffff
je 0x489424
cmp ecx, 1
jbe 0x489476
cmp esi, 8
lea eax, [ebp - 0x24c]
cmovae eax, edi
cmp word [eax + ecx*2 - 4], 0x5c
je 0x489476
mov dword [ebp - 4], 3
jmp 0x48942b
cmp esi, 8
lea eax, [ebp - 0x24c]
cmovae eax, edi
add ecx, ecx
mov dword [ebp - 0x254], ecx
movzx eax, word [ecx + eax - 2]
cmp eax, 0x61
jb 0x489499
cmp eax, 0x7a
jbe 0x4894a6
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x489624
push 0x208
lea eax, [ebp - 0x234]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.0053f340
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x24c]
add esp, 0xc
cmp esi, 8
cmovae eax, edi
add ecx, 0xfffffffe
add eax, ecx
je 0x4895ed
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x234]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x4895e4
cmp eax, 0x104
je 0x4895e4
mov dword [ebp - 0x26c], 0x5878a8
xor esi, esi
mov dword [ebp - 0x268], 0x5878c4
mov dword [ebp - 0x264], 0x5878f8
mov dword [ebp - 0x260], 0x58792c
mov dword [ebp - 0x25c], 0x58794c
mov dword [ebp - 0x258], 0x587984
nop
mov edx, dword [ebp + esi*4 - 0x26c]
mov eax, edx
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x489560
sub eax, edi
sar eax, 1
push eax
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.00420fc8
add esp, 0xc
test eax, eax
je 0x4895db
inc esi
cmp esi, 6
jb 0x489550
mov edx, dword [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x489681
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 7
cmp edx, 0x1000
jb 0x489677
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4896a1
jmp 0x489677
mov byte [0x5f179c], 1
jmp 0x48958a
mov dword [ebp - 4], 6
jmp 0x489604
call fcn.004116f6
mov dword [eax], 0x16
call fcn.0054222b
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x238]
cmp eax, 8
jb 0x489681
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040a2e0
jmp 0x489681
mov dword [ebp - 4], 4
jmp 0x48942b
mov edx, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x24c]
mov byte [0x5f179c], 1
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x489681
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 1
cmp edx, 0x1000
jb 0x489677
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4896a6
push edx
push ecx
call fcn.00409f25
add esp, 8
mov al, byte [0x5f179c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
call fcn.0054223b
call fcn.0054223b
int3