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

Disassembly:
push 0xffffffffffffffff
push 0x4e782b
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.004cc87a
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 0x40461e
mov ecx, 0x3a
cmp word [esi + 2], cx
jne 0x40461e
cmp word [esi + 4], di
jne 0x40461e
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.004b3af1
add esp, 4
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00402280
lea eax, [esp + 8]
push 0x4f004f
push eax
call fcn.00403fa0
add esp, 8
test al, al
je 0x4046bb
mov esi, dword [esp + 8]
add esi, 0xfffffff0
push esi
call fcn.00401be0
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 0x4047e9
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
jmp 0x4047e9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
cmp eax, 5
ja case.default.0x4046cc
jmp dword [eax*4 + 0x404804]
cmp dword [esp + 0xbc], edi
je case.default.0x4046cc
mov ecx, dword [0x51be5c]
cmp dword [ecx], edi
jne case.default.0x4046cc
mov esi, dword [esp + 0xb4]
push 0x4f0070
mov ecx, esi
call fcn.004044c0
lea ecx, [esp + 8]
call fcn.00401300
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
add esp, 0xa8
ret
push 0x51c2bc
lea ecx, [esp + 0xc]
call fcn.004024d0
jmp case.default.0x4046cc
push 0x51c2c4
lea ecx, [esp + 0xc]
call fcn.004024d0
jmp case.default.0x4046cc
push 0x51c2cc
lea ecx, [esp + 0xc]
call fcn.004024d0
jmp case.default.0x4046cc
push str.CD_ROM
jmp 0x40475b
push str.RAMDISK
lea ecx, [esp + 0xc]
call fcn.00402d60
mov esi, dword [esp + 8]
push 0x4efd50
push esi
call fcn.004b3ec2
add esp, 8
test eax, eax
je 0x4047b1
add esi, 0xfffffff0
push esi
call fcn.00401be0
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 0x4047e9
mov ecx, dword [esi]
push esi
jmp 0x4047e4
mov edi, dword [esp + 0xb4]
push 0x4efd50
mov ecx, edi
call fcn.004044c0
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 0x4047e9
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