Function at 0x404210
Capabilities:
Access peb ldr_data
Check os version
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4e364b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push esi
push edi
xor edi, edi
mov dword [esp + 8], edi
call fcn.004c86da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov esi, dword [esp + 0xb8]
xor eax, eax
mov dword [esp + 0x24], eax
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x40], eax
mov ax, word [esi]
cmp ax, di
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0xac], edi
mov dword [esp + 0x80], ecx
je 0x4042ce
mov ecx, 0x3a
cmp word [esi + 2], cx
jne 0x4042ce
cmp word [esi + 4], di
jne 0x4042ce
mov word [esp + 0xc], ax
mov word [esp + 0xe], cx
mov word [esp + 0x10], 0x5c
mov word [esp + 0x12], di
lea esi, [esp + 0xc]
push 0x40
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
push 0x40
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea ecx, [esp + 0x24]
push ecx
call fcn.004aee31
add esp, 4
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00402240
lea eax, [esp + 8]
push 0x4ec037
push eax
call fcn.00403c50
add esp, 8
test al, al
je 0x40436b
mov esi, dword [esp + 8]
add esi, 0xfffffff0
push esi
call fcn.00401ba0
mov edi, dword [esp + 0xb8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0xac], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404499
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
jmp 0x404499
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
cmp eax, 5
ja case.default.0x40437c
jmp dword [eax*4 + 0x4044b4]
cmp dword [esp + 0xbc], edi
je case.default.0x40437c
mov ecx, dword [0x517e5c]
cmp dword [ecx], edi
jne case.default.0x40437c
mov esi, dword [esp + 0xb4]
push 0x4ec058
mov ecx, esi
call fcn.00404170
lea ecx, [esp + 8]
call fcn.00401320
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
add esp, 0xa8
ret
push 0x5182bc
lea ecx, [esp + 0xc]
call fcn.00402490
jmp case.default.0x40437c
push 0x5182c4
lea ecx, [esp + 0xc]
call fcn.00402490
jmp case.default.0x40437c
push 0x5182cc
lea ecx, [esp + 0xc]
call fcn.00402490
jmp case.default.0x40437c
push str.CD_ROM
jmp 0x40440b
push str.RAMDISK
lea ecx, [esp + 0xc]
call fcn.00402d00
mov esi, dword [esp + 8]
push 0x4ebd38
push esi
call fcn.004af242
add esp, 8
test eax, eax
je 0x404461
add esi, 0xfffffff0
push esi
call fcn.00401ba0
mov edi, dword [esp + 0xb8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0xac], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404499
mov ecx, dword [esi]
push esi
jmp 0x404494
mov edi, dword [esp + 0xb4]
push 0x4ebd38
mov ecx, edi
call fcn.00404170
lea eax, [esi - 0x10]
mov dword [esp + 0xac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404499
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0xa4]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xa8
ret