Function at 0x49a650
Capabilities:
Access peb ldr_data
Get disk information via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x4b2060
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x34]
xor esi, esi
cmp ecx, esi
je 0x49a690
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x49a696
mov dword [esp + 0x14], esi
mov ebp, esi
mov dword [esp + 0x2c], esi
cmp ebp, esi
jne 0x49a6b7
mov eax, 0x57
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 4]
cmp eax, 0x120c0
jae 0x49a6d1
push 0x120c0
mov ecx, edi
call fcn.004080c0
cmp dword [edi + 4], 0x120c0
jae 0x49a707
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
push 1
mov ecx, ebp
mov dword [esp + 0x30], 0xffffffff
call edx
mov eax, 8
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [edi + 4]
mov esi, dword [edi]
lea edx, [ecx - 0x30]
mov eax, 0x38e38e39
mul edx
mov ebx, edx
lea edx, [esp + 0x34]
push edx
push ecx
push esi
push 0
mov dword [esp + 0x44], 0
mov eax, dword [ebp]
mov eax, dword [eax + 8]
push 0
push 0x70050
mov ecx, ebp
shr ebx, 5
call eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0x18], eax
je 0x49a839
push 0x4028
call fcn.0049badd
mov edi, eax
add esp, 4
neg eax
sbb eax, eax
and eax, 0x4028
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov byte [esp + 0x2c], 1
test edi, edi
je 0x49a832
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
push 0
push 0
push 0x7400c
mov ecx, ebp
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [edi]
add eax, 0xfffffff8
shr eax, 5
cmp ecx, eax
jae 0x49a7a5
mov eax, ecx
mov dword [edi], eax
mov dword [esi], 0
mov eax, dword [edi]
cmp eax, ebx
jb 0x49a7b5
mov eax, ebx
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
xor ebp, ebp
mov dword [esi + 8], ecx
test eax, eax
jbe 0x49a81d
lea ecx, [edi + 0x1c]
lea eax, [esi + 0x40]
mov dword [eax - 0x10], 0
mov edx, dword [ecx - 0x14]
mov dword [eax - 8], edx
mov edx, dword [ecx - 0x10]
mov dword [eax - 4], edx
mov edx, dword [ecx - 0xc]
mov dword [eax], edx
mov edx, dword [ecx - 8]
mov dword [eax + 4], edx
mov edx, dword [ecx]
mov dword [eax + 8], edx
movzx edx, byte [ecx + 7]
mov byte [eax + 0xc], dl
movzx edx, byte [ecx + 4]
mov byte [eax + 0x10], dl
movzx edx, byte [ecx + 5]
mov byte [eax + 0x11], dl
movzx edx, byte [ecx + 6]
mov byte [eax + 0x12], dl
mov edx, dword [ecx - 4]
mov dword [eax + 0x14], edx
inc ebp
add eax, 0x90
add ecx, 0x20
cmp ebp, dword [esi + 4]
jb 0x49a7ca
push edi
mov dword [esp + 0x38], 0
call fcn.0049ba00
mov ebp, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x34], 0
jne 0x49a847
mov eax, dword [esi + 4]
cmp eax, ebx
jae 0x49a842
mov ebx, eax
mov dword [esi + 4], ebx
jmp 0x49a84e
mov dword [esi + 4], 0
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x34]
push 1
mov ecx, ebp
mov dword [esp + 0x30], 0xffffffff
call edx
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret