Function at 0x490550
Capabilities:
Get disk information
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538324
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x588088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x46c], esi
mov ebx, ecx
mov dword [ebp - 0x484], ebx
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x488], ebx
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x470], 0
call fcn.00402ac0
mov dword [ebp - 4], 1
test esi, esi
jne 0x4905cd
lea eax, [ebp - 0x444]
mov ecx, ebx
push eax
call fcn.00404cf0
jmp 0x490a66
push str.Kernel32.dll
lea ecx, [ebp - 0x4b8]
call fcn.00402a70
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4b8]
push eax
call fcn.004a1560
mov ecx, eax
call fcn.004a1620
mov esi, eax
mov dword [ebp - 0x47c], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b8]
call fcn.00402a60
push str.Psapi.dll
lea ecx, [ebp - 0x4a0]
call fcn.00402a70
mov byte [ebp - 4], 3
lea eax, [ebp - 0x4a0]
push eax
call fcn.004a1560
mov ecx, eax
call fcn.004a1620
mov edi, eax
mov dword [ebp - 0x478], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a0]
call fcn.00402a60
test edi, edi
je 0x490a58
test esi, esi
je 0x490a58
lea ecx, [ebp - 0x138]
call fcn.00493ae0
cmp dword [ebp - 0x134], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jb 0x49070b
push str.QueryFullProcessImageNameW
push esi
call edi
mov esi, eax
test esi, esi
je 0x49070b
push 0x412
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004e42f0
add esp, 0xc
mov dword [ebp - 0x42c], 0x208
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push dword [ebp - 0x46c]
call esi
test eax, eax
je 0x49070b
mov eax, dword [ebp - 0x42c]
cmp eax, 0x208
jae 0x4906e9
add eax, eax
cmp eax, 0x412
jae 0x490a9d
xor ecx, ecx
mov word [ebp + eax - 0x428], cx
lea eax, [ebp - 0x428]
push eax
call fcn.00402d60
add esp, 4
lea ecx, [ebp - 0x444]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00402b50
lea ecx, [ebp - 0x444]
call fcn.00404470
test al, al
je 0x49097f
push str.GetProcessImageFileNameW
push dword [ebp - 0x478]
call edi
mov esi, eax
test esi, esi
jne 0x490744
push str.GetProcessImageFileNameW
push dword [ebp - 0x47c]
call edi
mov esi, eax
test esi, esi
je 0x4907b2
push 0x412
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004e42f0
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x208
push eax
push dword [ebp - 0x46c]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x4907b2
add eax, eax
cmp eax, 0x412
jae 0x490a9d
xor ecx, ecx
mov word [ebp + eax - 0x428], cx
lea eax, [ebp - 0x428]
push eax
call fcn.00402d60
add esp, 4
lea ecx, [ebp - 0x444]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00402b50
lea ecx, [ebp - 0x444]
call fcn.00404470
test al, al
jne 0x49097f
push 0x410
call fcn.004e2282
add esp, 4
mov ebx, eax
push 0x410
push 0
push ebx
call fcn.004e42f0
add esp, 0xc
lea ecx, [ebp - 0x450]
push 0xc
call fcn.00403e50
lea ecx, [ebp - 0x450]
call fcn.00409ff0
mov byte [ebp - 4], 4
call fcn.0048d580
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x42c], 0
call fcn.00413670
test eax, eax
je 0x490961
call fcn.00402ae0
xor esi, esi
mov dword [ebp - 0x480], eax
mov dword [ebp - 0x474], esi
mov edi, dword [eax]
add edi, esi
mov ecx, edi
call fcn.00404600
cmp eax, 3
jb 0x49086c
mov ecx, edi
call fcn.00402ae0
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x490858
mov ecx, dword [eax]
cmp word [ecx + 4], 0x5c
jne 0x49086c
cmp edx, 8
jb 0x490866
mov eax, dword [eax]
xor ecx, ecx
mov word [eax + 4], cx
push 0x208
push ebx
mov ecx, edi
call fcn.00403390
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x490887
mov word [ebx], ax
mov esi, ebx
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x490890
sub esi, ecx
sar esi, 1
je 0x4908ca
lea ecx, [ebp - 0x444]
call fcn.00404600
cmp esi, eax
jae 0x4908ca
push esi
push ebx
lea ecx, [ebp - 0x444]
call fcn.00403390
push eax
call fcn.004f165c
add esp, 0xc
test eax, eax
je 0x490900
mov edi, dword [ebp - 0x42c]
lea ecx, [ebp - 0x450]
mov esi, dword [ebp - 0x474]
inc edi
add esi, 0x18
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x474], esi
call fcn.00413670
cmp edi, eax
jae 0x49095b
mov eax, dword [ebp - 0x480]
jmp 0x490835
lea ecx, [ebp - 0x468]
call fcn.00402ac0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x444]
call fcn.00403390
mov ecx, edi
lea eax, [eax + esi*2]
push eax
call fcn.00403390
push eax
lea eax, [ebp - 0x468]
push str._s_s
push eax
call fcn.0048b8e0
add esp, 0x10
lea eax, [ebp - 0x468]
lea ecx, [ebp - 0x444]
push eax
call fcn.0044a580
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x468]
call fcn.00402a60
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call fcn.004e1d0d
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.0040a030
mov ebx, dword [ebp - 0x484]
lea ecx, [ebp - 0x444]
call fcn.00404470
test al, al
je 0x490a28
push str.GetModuleFileNameExW
push dword [ebp - 0x478]
call edi
mov esi, eax
test esi, esi
jne 0x4909b8
push str.GetModuleFileNameExW
push dword [ebp - 0x47c]
call edi
mov esi, eax
test esi, esi
je 0x490a28
push 0x412
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004e42f0
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x208
push eax
push 0
push dword [ebp - 0x46c]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x490a28
add eax, eax
cmp eax, 0x412
jae 0x490a9d
xor ecx, ecx
mov word [ebp + eax - 0x428], cx
lea eax, [ebp - 0x428]
push eax
call fcn.00402d60
add esp, 4
lea ecx, [ebp - 0x444]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00402b50
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x4a0]
call fcn.0048d0f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x444]
push eax
call fcn.004044e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a0]
call fcn.00402a60
lea eax, [ebp - 0x444]
mov ecx, ebx
push eax
call fcn.00404cf0
mov dword [ebp - 0x470], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x444]
call fcn.00402a60
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1a24
mov esp, ebp
pop ebp
ret
call fcn.004e20a1
int3