Function at 0x409820
Capabilities:
Get disk information
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bc310
mov eax, dword fs:[0]
push eax
sub esp, 0x5c4
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x5c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x5d8]
mov dword fs:[0], eax
mov eax, edx
mov dword [esp + 0x1c], eax
mov edi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0
xor ecx, ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], cx
mov dword [esp + 0x5e0], 1
test eax, eax
jne 0x4098ba
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
call fcn.00404d30
jmp 0x409e7b
push str.Kernel32.dll
lea ecx, [esp + 0x48]
call fcn.00401dd0
mov byte [esp + 0x5e0], 2
mov eax, dword [0x4f8910]
test al, 1
jne 0x40990d
or eax, 1
mov dword [0x4f8910], eax
mov byte [esp + 0x5e0], 3
mov dword [0x4f890c], 0
call fcn.00407db0
push 0x4cdb80
call fcn.0049c72f
add esp, 4
mov byte [esp + 0x5e0], 2
lea eax, [esp + 0x44]
mov ecx, 0x4f890c
push eax
call fcn.00407f70
mov ebp, eax
mov dword [esp + 0x40], ebp
mov byte [esp + 0x5e0], 1
cmp dword [esp + 0x58], 8
jb 0x40993d
push dword [esp + 0x44]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
push str.Psapi.dll
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.00401dd0
mov byte [esp + 0x5e0], 4
mov eax, dword [0x4f8910]
test al, 1
jne 0x4099a7
or eax, 1
mov dword [0x4f8910], eax
mov byte [esp + 0x5e0], 5
mov dword [0x4f890c], 0
call fcn.00407db0
push 0x4cdb80
call fcn.0049c72f
add esp, 4
mov byte [esp + 0x5e0], 4
lea eax, [esp + 0x24]
mov ecx, 0x4f890c
push eax
call fcn.00407f70
mov esi, eax
mov dword [esp + 0x14], esi
mov byte [esp + 0x5e0], 1
cmp dword [esp + 0x38], 8
jb 0x4099d7
push dword [esp + 0x24]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
test esi, esi
je 0x409e6f
test ebp, ebp
je 0x409e6f
lea ecx, [esp + 0x9c]
call fcn.00408880
cmp dword [esp + 0xa0], 6
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jb 0x409aa4
push str.QueryFullProcessImageNameW
push ebp
call ebx
mov esi, eax
test esi, esi
je 0x409aa0
xor eax, eax
push 0x410
push eax
mov word [esp + 0x1c4], ax
lea eax, [esp + 0x1c6]
push eax
call fcn.004a1910
add esp, 0xc
mov dword [esp + 0x74], 0x208
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x1c0]
push eax
push 0
push dword [esp + 0x28]
call esi
test eax, eax
je 0x409aa0
mov eax, dword [esp + 0x74]
cmp eax, 0x208
jae 0x409a8f
add eax, eax
cmp eax, 0x412
jae 0x409bd9
xor ecx, ecx
mov word [esp + eax + 0x1bc], cx
lea eax, [esp + 0x1bc]
push eax
lea ecx, [esp + 0x60]
call fcn.00403810
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x6c], 0
jne 0x409dea
push str.GetProcessImageFileNameW
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x409acb
push str.GetProcessImageFileNameW
push ebp
call ebx
mov esi, eax
test esi, esi
je 0x409b31
xor eax, eax
push 0x410
push eax
mov word [esp + 0x1c4], ax
lea eax, [esp + 0x1c6]
push eax
call fcn.004a1910
add esp, 0xc
lea eax, [esp + 0x1bc]
push 0x208
push eax
push dword [esp + 0x24]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x409b31
add eax, eax
cmp eax, 0x412
jae 0x409bd9
xor ecx, ecx
mov word [esp + eax + 0x1bc], cx
lea eax, [esp + 0x1bc]
push eax
lea ecx, [esp + 0x60]
call fcn.00403810
cmp dword [esp + 0x6c], 0
je 0x409d63
push 0x410
call fcn.00498300
add esp, 4
mov ebx, eax
push 0x410
push 0
push ebx
call fcn.004a1910
xorps xmm0, xmm0
mov dword [esp + 0x8c], 0
movq qword [esp + 0x84], xmm0
add esp, 0xc
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x5e0], 6
lea ecx, [esp + 0x78]
call fcn.0040af20
mov ecx, dword [esp + 0x7c]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x78]
xor ebp, ebp
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x74], eax
je 0x409d02
mov edi, esi
cmp dword [edi + 0x10], 3
jb 0x409bf8
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x409bde
mov eax, dword [edi]
jmp 0x409be0
call fcn.0049cf59
mov eax, edi
cmp word [eax + 4], 0x5c
jne 0x409bf8
cmp ecx, 8
jb 0x409bf0
mov eax, dword [edi]
jmp 0x409bf2
mov eax, edi
xor ecx, ecx
mov word [eax + 4], cx
cmp dword [edi + 0x14], 8
jb 0x409c02
mov eax, dword [edi]
jmp 0x409c04
mov eax, edi
push 0x208
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x409c18
mov word [ebx], ax
mov esi, ebx
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x409c20
sub esi, ecx
sar esi, 1
je 0x409c54
cmp esi, dword [esp + 0x6c]
jae 0x409c54
cmp dword [esp + 0x70], 8
lea eax, [esp + 0x5c]
push esi
cmovae eax, dword [esp + 0x60]
push ebx
push eax
call fcn.0049d7fc
add esp, 0xc
test eax, eax
je 0x409c67
inc ebp
add edi, 0x18
cmp ebp, dword [esp + 0x74]
jb 0x409bc7
jmp 0x409cfa
xor eax, eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], 0
mov word [esp + 0x84], ax
mov byte [esp + 0x5e0], 7
lea eax, [esp + 0x5c]
cmp dword [esp + 0x70], 8
cmovae eax, dword [esp + 0x5c]
cmp dword [edi + 0x14], 8
jb 0x409cbb
mov edi, dword [edi]
lea eax, [eax + esi*2]
push eax
push edi
lea eax, [esp + 0x8c]
push str._s_s
push eax
call fcn.004073e0
add esp, 0x10
lea eax, [esp + 0x84]
lea ecx, [esp + 0x5c]
push eax
call fcn.00409fc0
mov byte [esp + 0x5e0], 6
lea ecx, [esp + 0x84]
call fcn.00401e30
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x20]
push ebx
call fcn.0049ce1c
add esp, 4
mov byte [esp + 0x5e0], 1
test esi, esi
je 0x409d4e
push dword [esp + 0x3c]
mov edx, dword [esp + 0x80]
push ecx
mov ecx, esi
call fcn.0040aca0
push esi
call fcn.0049c766
add esp, 0xc
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
cmp dword [esp + 0x6c], 0
jne 0x409dea
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [esp + 0x40]
push str.GetModuleFileNameExW
push dword [esp + 0x18]
call ebx
mov esi, eax
test esi, esi
jne 0x409d82
push str.GetModuleFileNameExW
push ebp
call ebx
mov esi, eax
test esi, esi
je 0x409dea
xor eax, eax
push 0x410
push eax
mov word [esp + 0x1c4], ax
lea eax, [esp + 0x1c6]
push eax
call fcn.004a1910
add esp, 0xc
lea eax, [esp + 0x1bc]
push 0x208
push eax
push 0
push dword [esp + 0x28]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x409dea
add eax, eax
cmp eax, 0x412
jae 0x409bd9
xor ecx, ecx
mov word [esp + eax + 0x1bc], cx
lea eax, [esp + 0x1bc]
push eax
lea ecx, [esp + 0x60]
call fcn.00403810
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x24]
call fcn.0040b3b0
mov esi, eax
mov byte [esp + 0x5e0], 8
lea eax, [esp + 0x5c]
cmp eax, esi
je 0x409e3d
cmp dword [esp + 0x70], 8
jb 0x409e1c
push dword [esp + 0x5c]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x70], 0
mov word [esp + 0x60], ax
call fcn.00405670
mov byte [esp + 0x5e0], 1
cmp dword [esp + 0x38], 8
jb 0x409e58
push dword [esp + 0x24]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
call fcn.00404d30
mov dword [esp + 0x18], 1
mov byte [esp + 0x5e0], 0
cmp dword [esp + 0x70], 8
jb 0x409e9e
push dword [esp + 0x5c]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], eax
mov word [esp + 0x5c], ax
mov eax, edi
mov ecx, dword [esp + 0x5d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c0]
xor ecx, esp
call fcn.0049bfa3
add esp, 0x5d0
ret