Function at 0x474430
Capabilities:
Get disk information
Get disk information via ioctl
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff674
mov ebp, ecx
mov esi, edx
mov ebx, eax
mov byte [esp], 0
push 0
push 0
mov dl, 1
mov eax, 0x1210
call fcn.004426b4
cmp ebp, 0xffffffff
jne 0x47445e
mov ebp, 0x8000
test ebp, 0x4001
jne 0x47447c
test ebp, 0x8000
je 0x474478
mov eax, dword [0x66d734]
cmp byte [eax], 0
jne 0x47447c
xor eax, eax
jmp 0x47447e
mov al, 1
mov byte [esp + 0xc], al
mov eax, dword [ebx]
test eax, eax
jne 0x474f4c
push 0
push pe_nt_image_headers32
push 0
push 0
call fcn.004427c8
mov byte [ebx + 0xa], 1
mov byte [ebx + 9], 0
lea eax, [ebx + 0x494]
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, 0x3ff
mov edx, edi
call fcn.0047029c
test eax, eax
jle 0x47548b
push 0
push 0x110
push 0
push 0
call fcn.004427c8
mov byte [ebx + 0x94], 0
mov byte [ebx + 0xcd4], 1
push 0
lea edx, [esp + 0x5c]
mov eax, dword [ebx + 4]
mov ecx, 7
call fcn.00470100
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
lea edx, [esp + 4]
mov cl, 1
mov eax, 0x3f0
call fcn.00442fb4
mov dword [ebx + 0xcdc], 0xa0000000
push 0
push 0x120
push 0
push 0
call fcn.004427c8
test ebp, 0x8000
jne 0x474536
test ebp, 2
jne 0x47455f
test ebp, 0x8000
je 0x474582
cmp dword [ebx + 0x58], 0
je 0x474582
cmp esi, 1
je 0x474582
cmp esi, 2
je 0x474582
cmp esi, 0xffffffff
jne 0x47455f
mov eax, dword [ebx + 4]
call fcn.004706dc
test al, al
jne 0x474582
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov edi, eax
mov dword [ebx + 0xce4], edi
test edi, edi
je 0x474582
or dword [ebx + 0xcdc], 0x40000000
push 0
push 0x130
push 0
push 0
call fcn.004427c8
cmp byte [esp + 0xc], 0
je 0x4745a5
mov dword [ebx + 0xcd8], 0xc0000000
jmp 0x4745af
mov dword [ebx + 0xcd8], 0x80000000
push 0
mov eax, dword [ebx + 0xcdc]
push eax
push 3
push 0
push 3
mov eax, dword [ebx + 0xcd8]
push eax
lea eax, [ebx + 0x494]
push eax
call sub.kernel32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
jne 0x47460a
test byte [ebx + 0xcdb], 0x40
je 0x47460a
mov eax, 0x80000000
mov dword [ebx + 0xcd8], eax
push 0
mov edx, dword [ebx + 0xcdc]
push edx
push 3
push 0
push 3
push eax
lea eax, [ebx + 0x494]
push eax
call sub.kernel32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
jne 0x474640
call sub.kernel32.dll_GetLastError
mov dword [ebx + 0xce0], eax
xor eax, eax
mov dword [ebx + 0xcd8], eax
push 0
mov edx, dword [ebx + 0xcdc]
push edx
push 3
push 0
push 3
push eax
lea eax, [ebx + 0x494]
push eax
call sub.kernel32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
jne 0x47464f
call fcn.00442fa8
jmp 0x47548b
mov eax, dword [ebx + 4]
call fcn.004706dc
test al, al
jne 0x474702
push 0
push 0x160
push 0
push 0
call fcn.004427c8
push 0
lea eax, [esp + 0x14]
push eax
push 0x18
lea eax, [esp + 0x88c]
push eax
push 0
push 0
push 0x70000
push edi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x4746b1
call sub.kernel32.dll_GetLastError
mov dword [ebx + 0xce0], eax
lea eax, [esp + 0x880]
xor ecx, ecx
mov edx, 0x20
call fcn.004032f4
xor eax, eax
mov dword [esp + 0x898], eax
xor eax, eax
mov dword [esp + 0x89c], eax
push 0
lea eax, [esp + 0x14]
push eax
push 8
lea eax, [esp + 0x8a4]
push eax
push 0
push 0
push 0x7405c
push edi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x47478a
xor eax, eax
mov dword [esp + 0x898], eax
xor eax, eax
mov dword [esp + 0x89c], eax
jmp 0x47478a
push 0
push 0x170
push 0
push 0
call fcn.004427c8
push 0
lea eax, [esp + 0x14]
push eax
push 0x20
lea eax, [esp + 0x88c]
push eax
push 0
push 0
push 0x24050
push edi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x47478a
xor eax, eax
mov dword [esp + 0x898], eax
xor eax, eax
mov dword [esp + 0x89c], eax
push 0
lea eax, [esp + 0x14]
push eax
push 0x18
lea eax, [esp + 0x88c]
push eax
push 0
push 0
push 0x2404c
push edi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x47478a
call sub.kernel32.dll_GetLastError
mov dword [ebx + 0xce0], eax
lea eax, [esp + 0x880]
xor ecx, ecx
mov edx, 0x20
call fcn.004032f4
push 0
push 0x180
push 0
push 0
call fcn.004427c8
cmp esi, 1
sete byte [esp + 0x1c]
mov eax, dword [ebx + 4]
call fcn.00470f94
test al, al
jne 0x4747b8
mov dword [esp + 0x18], 0xffffffff
jmp 0x4747c3
mov eax, dword [0x66d5e4]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
cmp byte [esp + 0x1c], 0
jne 0x4747da
mov eax, dword [ebx + 4]
call fcn.00470730
test al, al
jne 0x474874
push 0
push 0x190
push 0
push 0
call fcn.004427c8
test byte [ebx + 0xcdf], 0x40
jne 0x4747fb
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x474811
mov edx, dword [ebx + 0xce4]
lea eax, [esp + 0x86c]
call fcn.00466a2c
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
call fcn.00470764
push eax
mov eax, dword [ebx + 4]
call fcn.004702d0
test al, al
jne 0x47482c
cmp byte [ebx + 0x49], 0
je 0x474830
xor eax, eax
jmp 0x474832
mov al, 1
push eax
mov eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0x88c]
push eax
lea eax, [ebx + 0xcf8]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [ebx + 4]
call fcn.004706dc
mov ecx, eax
mov eax, dword [ebx + 4]
mov edx, edi
call fcn.0047391c
movzx edx, byte [ebx + 0xe48]
mov eax, dword [ebx + 4]
call fcn.004706a4
push 0
push 0x1a0
push 0
push 0
call fcn.004427c8
cmp byte [esp + 0x1c], 0
je 0x474890
mov esi, 1
mov eax, dword [esp + 0x898]
mov dword [ebx + 0xc94], eax
mov eax, dword [esp + 0x89c]
mov dword [ebx + 0xc98], eax
mov eax, dword [esp + 0x880]
mov dword [ebx + 0xc9c], eax
mov eax, dword [esp + 0x884]
mov dword [ebx + 0xca0], eax
mov eax, dword [esp + 0x88c]
mov dword [ebx + 0xca4], eax
mov eax, dword [esp + 0x890]
mov dword [ebx + 0xca8], eax
mov eax, dword [esp + 0x894]
mov dword [ebx + 0xcb4], eax
cmp dword [ebx + 0xcb4], 0
jne 0x474909
cmp byte [ebx + 0xe5e], 0
je 0x474909
mov eax, dword [ebx + 0xe14]
mov dword [ebx + 0xcb4], eax
cmp dword [ebx + 0xc98], 0
jne 0x474a5c
cmp dword [ebx + 0xc94], 0
jne 0x474a5c
cmp dword [ebx + 0xcb4], 0
je 0x474a5c
mov eax, dword [ebx + 0xcb4]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xca8]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xca4]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xc9c]
mov edx, dword [ebx + 0xca0]
call fcn.00405158
call fcn.00405158
call fcn.00405158
mov dword [ebx + 0xc94], eax
mov dword [ebx + 0xc98], edx
cmp byte [ebx + 0xe5e], 0
je 0x474a5c
mov eax, dword [ebx + 0xe14]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xe0c]
mov edx, dword [ebx + 0xe10]
call fcn.00405158
push edx
push eax
mov eax, dword [ebx + 0xc94]
mov edx, dword [ebx + 0xc98]
cmp edx, dword [esp + 4]
jne 0x4749be
cmp eax, dword [esp]
pop edx
pop eax
jae 0x474a5c
jmp 0x4749c6
pop edx
pop eax
jge 0x474a5c
mov eax, dword [ebx + 0xe14]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xe0c]
mov edx, dword [ebx + 0xe10]
call fcn.00405158
push edx
push eax
mov eax, dword [ebx + 0xcb4]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xca8]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xca4]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xc9c]
mov edx, dword [ebx + 0xca0]
add eax, 1
adc edx, 0
call fcn.00405158
call fcn.00405158
call fcn.00405158
cmp edx, dword [esp + 4]
jne 0x474a31
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x474a5c
jmp 0x474a35
pop edx
pop eax
jle 0x474a5c
mov eax, dword [ebx + 0xe14]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xe0c]
mov edx, dword [ebx + 0xe10]
call fcn.00405158
mov dword [ebx + 0xc94], eax
mov dword [ebx + 0xc98], edx
cmp esi, 0xffffffff
jne 0x474a86
cmp byte [ebx + 0xe5e], 0
je 0x474a86
mov eax, dword [ebx + 0xe38]
cmp eax, dword [ebx + 0xe14]
jbe 0x474a86
cmp byte [ebx + 0xe5a], 0
je 0x474a86
mov esi, 1
cmp esi, 0xffffffff
jne 0x474ae3
cmp byte [ebx + 0xe5e], 0
je 0x474ae3
mov eax, dword [ebx + 0xe38]
cmp eax, dword [ebx + 0xe14]
jbe 0x474ae3
mov eax, dword [ebx + 0xe14]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xe0c]
mov edx, dword [ebx + 0xe10]
call fcn.00405158
push edx
push eax
mov eax, dword [ebx + 0xc94]
mov edx, dword [ebx + 0xc98]
cmp edx, dword [esp + 4]
jne 0x474ada
cmp eax, dword [esp]
pop edx
pop eax
jae 0x474ae3
jmp 0x474ade
pop edx
pop eax
jge 0x474ae3
mov esi, 1
cmp esi, 2
jne 0x474b6e
mov eax, dword [ebx + 0xd10]
mov dword [ebx + 0xcb4], eax
mov eax, dword [ebx + 0xd08]
mov dword [ebx + 0xcac], eax
mov eax, dword [ebx + 0xd0c]
mov dword [ebx + 0xcb0], eax
cmp dword [ebx + 0xcb4], 0
jne 0x474b42
push 0
push 0x200
mov eax, dword [ebx + 0xcac]
mov edx, dword [ebx + 0xcb0]
call fcn.00405158
mov dword [ebx + 0xc94], eax
mov dword [ebx + 0xc98], edx
jmp 0x474cbd
mov eax, dword [ebx + 0xcb4]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xcac]
mov edx, dword [ebx + 0xcb0]
call fcn.00405158
mov dword [ebx + 0xc94], eax
mov dword [ebx + 0xc98], edx
jmp 0x474cbd
cmp esi, 1
jne 0x474bc3
mov eax, dword [ebx + 0xe14]
mov dword [ebx + 0xcb4], eax
mov eax, dword [ebx + 0xe0c]
mov dword [ebx + 0xcac], eax
mov eax, dword [ebx + 0xe10]
mov dword [ebx + 0xcb0], eax
mov eax, dword [ebx + 0xe14]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0xe0c]
mov edx, dword [ebx + 0xe10]
call fcn.00405158
mov dword [ebx + 0xc94], eax
mov dword [ebx + 0xc98], edx
jmp 0x474cbd
mov eax, dword [ebx + 0xcb4]
test eax, eax
jne 0x474be6
mov dword [ebx + 0xcac], 0
mov dword [ebx + 0xcb0], 0
jmp 0x474cbd
mov edx, dword [ebx + 0xc94]
mov dword [esp + 0x28], edx
mov edx, dword [ebx + 0xc98]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
cmp dword [esp + 0x2c], 0
jne 0x474c0e
cmp dword [esp + 0x28], 0
jae 0x474c73
jmp 0x474c10
jge 0x474c73
mov eax, dword [esp + 0x30]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jbe 0x474c43
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x30]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x474ca9
mov eax, dword [esp + 0x30]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.00405210
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.0040517c
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x38]
mov dword [ebx + 0xcac], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0xcb0], eax
push 0
push 0x1b0
push 0
push 0
call fcn.004427c8
lea eax, [ebx + 0xcf8]
call fcn.004661c8
mov dword [ebx + 0xccc], eax
mov eax, dword [ebx + 0xcb4]
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x474cf4
mov eax, dword [ebx + 0xd10]
mov dword [ebx + 0x1c], eax
cmp dword [ebx + 0x1c], 0
jne 0x474d16
mov eax, dword [ebx + 4]
call fcn.004706dc
test al, al
je 0x474d0f
mov dword [ebx + 0x1c], 0x800
jmp 0x474d16
mov dword [ebx + 0x1c], 0x200
cmp esi, 2
jne 0x474d5a
push 0
push 0
push dword [ebx + 0xd0c]
push dword [ebx + 0xd08]
push dword [ebx + 0xcfc]
push dword [ebx + 0xcf8]
mov eax, dword [ebx + 0x1c]
push eax
lea eax, [ebx + 0x10]
push eax
push 0
mov ecx, dword [ebx + 0xd10]
mov edx, dword [ebx + 0xd04]
mov eax, dword [ebx + 0xd00]
call fcn.0046624c
jmp 0x474dc4
cmp esi, 1
jne 0x474d96
push dword [ebx + 0xe1c]
push dword [ebx + 0xe18]
push dword [ebx + 0xe10]
push dword [ebx + 0xe0c]
push 0
push 0
mov eax, dword [ebx + 0x1c]
push eax
lea eax, [ebx + 0x10]
push eax
push 0
mov ecx, dword [ebx + 0xe14]
xor edx, edx
xor eax, eax
call fcn.0046624c
jmp 0x474dc4
push dword [ebx + 0xc98]
push dword [ebx + 0xc94]
push 0
push 0
push 0
push 0
lea eax, [ebx + 0x10]
push eax
push 0
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0xca8]
mov eax, dword [ebx + 0xca4]
call fcn.004666e0
cmp esi, 2
jne 0x474dd5
mov dword [ebx + 0xcc0], 0xe
jmp 0x474dee
dec esi
jne 0x474de4
mov dword [ebx + 0xcc0], 0xc
jmp 0x474dee
mov dword [ebx + 0xcc0], 0xb
mov word [ebx + 0xcc4], 1
mov word [ebx + 0xcc6], 2
mov word [ebx + 0xcc8], 0
test byte [ebx + 0xcdb], 0x40
je 0x474e1a
or word [ebx + 0xcc8], 1
test byte [ebx + 0xcdf], 0x40
je 0x474e2b
or word [ebx + 0xcc8], 2
cmp dword [ebx + 0xcc0], 0xe
jne 0x474e59
or word [ebx + 0xcc6], 4
test ebp, 0x8000
je 0x474e4e
or word [ebx + 0xcc8], 4
jmp 0x474e59
and bp, 4
or word [ebx + 0xcc8], bp
push 0
push 0x1c0
push 0
push 0
call fcn.004427c8
mov eax, dword [ebx + 4]
call fcn.004706dc
test al, al
jne 0x474ea4
cmp byte [ebx + 0xe5e], 0
je 0x474e91
mov eax, dword [ebx + 0xe38]
cmp eax, dword [ebx + 0x1c]
jb 0x474e91
or word [ebx + 0xcc4], 2
cmp byte [ebx + 0xe2c], 0
je 0x474ed0
or word [ebx + 0xcc4], 4
jmp 0x474ed0
cmp byte [ebx + 0xe5e], 0
je 0x474ed0
cmp dword [ebx + 0xe38], 0
jbe 0x474ed0
cmp byte [ebx + 0xe5a], 0
jne 0x474ec8
cmp dword [ebx + 0xe14], 0
jbe 0x474ed0
or word [ebx + 0xcc4], 2
push 0
push 0x1d0
push 0
push 0
call fcn.004427c8
cmp byte [ebx + 0xe5e], 0
je 0x474ef5
mov eax, dword [ebx + 0xe38]
mov dword [ebx + 0xe54], eax
mov dword [ebx + 0xcd0], edi
mov eax, dword [ebx + 4]
call fcn.004708a4
test al, al
je 0x474f10
mov dword [ebx + 0xc], 1
jmp 0x474f2a
mov eax, dword [ebx + 4]
call fcn.004706dc
test al, al
je 0x474f23
xor eax, eax
mov dword [ebx + 0xc], eax
jmp 0x474f2a
mov dword [ebx + 0xc], 0xffffffff
call fcn.00442fa8
push 0
push 0x1e0
push 0
push 0
call fcn.004427c8
mov eax, dword [ebx + 4]
call fcn.004700c4
jmp 0x475487
dec eax
jne 0x475475
push 0
push 0x200
push 0
push 0
call fcn.004427c8
xor eax, eax
call fcn.0046d850
push 0
push 0x210
push 0
push 0
call fcn.004427c8
mov byte [ebx + 0xb], 0
mov byte [ebx + 0xa], 0
mov byte [ebx + 9], 1
mov eax, dword [ebx + 4]
test eax, 0xffff0000
jne 0x474fdf
imul edx, eax, 0x299
mov eax, dword [0x66d144]
mov eax, dword [eax]
cmp dword [eax + edx*8 + 0x1404], 0xffffffff
je 0x474fbb
mov eax, dword [0x66d144]
mov eax, dword [eax]
movzx eax, byte [eax + edx*8 + 0x1404]
add al, 0x41
mov byte [ebx + 0xb], al
imul eax, dword [ebx + 4], 0x299
mov edx, dword [0x66d144]
mov edx, dword [edx]
lea edx, [edx + eax*8]
lea eax, [ebx + 0x494]
mov ecx, 0x3ff
call fcn.0040da74
jmp 0x474ff2
mov edx, dword [ebx + 4]
lea eax, [ebx + 0x494]
mov ecx, 0x3ff
call fcn.0040da74
mov byte [ebx + 0x94], 0
mov byte [ebx + 0xcd4], 1
push 0
push 0x220
push 0
push 0
call fcn.004427c8
mov eax, dword [ebx + 4]
movzx edx, byte [esp + 0xc]
call fcn.0046dc20
mov edi, eax
imul eax, dword [ebx + 4], 0x299
mov edx, dword [0x66d144]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0x14b8]
mov dword [ebx + 0xcd8], eax
imul eax, dword [ebx + 4], 0x299
mov edx, dword [0x66d144]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0x14bc]
mov dword [ebx + 0xce0], eax
cmp edi, 0xffffffff
je 0x47548b
push 0
lea eax, [esp + 0x14]
push eax
push 0x18
lea eax, [esp + 0x88c]
push eax
push 0
push 0
push 0x70000
push edi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x4750a2
call sub.kernel32.dll_GetLastError
mov dword [ebx + 0xce0], eax
lea eax, [esp + 0x880]
xor ecx, ecx
mov edx, 0x18
call fcn.004032f4
push 0
push 0x230
push 0
push 0
call fcn.004427c8
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.0046df68
imul eax, dword [ebx + 4], 0x299
mov edx, dword [0x66d144]
mov edx, dword [edx]
cmp byte [edx + eax*8 + 0x1415], 0
je 0x4750f9
mov edx, dword [0x66d144]
mov edx, dword [edx]
mov ecx, dword [edx + eax*8 + 0x1426]
mov dword [ebx + 0xc94], ecx
mov ecx, dword [edx + eax*8 + 0x142a]
mov dword [ebx + 0xc98], ecx
jmp 0x47510d
mov dword [ebx + 0xc94], 0
mov dword [ebx + 0xc98], 0
push 0
push 0x240
push 0
push 0
call fcn.004427c8
lea eax, [esp + 0x898]
xor ecx, ecx
mov edx, 8
call fcn.004032f4
push 0
lea eax, [esp + 0x14]
push eax
push 8
lea eax, [esp + 0x8a4]
push eax
push 0
push 0
push 0x7405c
push edi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x475190
mov eax, dword [ebx + 0xc94]
mov edx, dword [ebx + 0xc98]
cmp edx, dword [esp + 0x89c]
jne 0x475174
cmp eax, dword [esp + 0x898]
jae 0x475190
jmp 0x475176
jge 0x475190
mov eax, dword [esp + 0x898]
mov dword [ebx + 0xc94], eax
mov eax, dword [esp + 0x89c]
mov dword [ebx + 0xc98], eax
push 0
push 0x250
push 0
push 0
call fcn.004427c8
cmp dword [ebx + 0xc98], 0
jne 0x4751b0
cmp dword [ebx + 0xc94], 0
je 0x4751c8
mov dword [ebx + 0xc9c], 0
mov dword [ebx + 0xca0], 0
jmp 0x4751e2
mov eax, dword [esp + 0x880]
mov dword [ebx + 0xc9c], eax
mov eax, dword [esp + 0x884]
mov dword [ebx + 0xca0], eax
mov eax, dword [esp + 0x88c]
mov dword [ebx + 0xca4], eax
mov eax, dword [esp + 0x890]
mov dword [ebx + 0xca8], eax
mov eax, dword [esp + 0x894]
mov dword [ebx + 0xcb4], eax
test eax, eax
je 0x4752de
mov edx, dword [ebx + 0xc94]
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0xc98]
mov dword [esp + 0x44], edx
mov esi, eax
cmp dword [esp + 0x44], 0
jne 0x475237
cmp dword [esp + 0x40], 0
jae 0x475296
jmp 0x475239
jge 0x475296
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jbe 0x475268
mov eax, esi
sub eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x30]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jmp 0x4752c8
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
call fcn.00405210
mov dword [esp + 0x20], eax
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
call fcn.0040517c
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x48]
mov dword [ebx + 0xcac], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0xcb0], eax
jmp 0x4752f2
mov dword [ebx + 0xcac], 0
mov dword [ebx + 0xcb0], 0
push dword [ebx + 0xc98]
push dword [ebx + 0xc94]
push 0
push 0
push dword [ebx + 0xca0]
push dword [ebx + 0xc9c]
lea eax, [ebx + 0x10]
push eax
push 1
mov ecx, dword [ebx + 0xcb4]
mov edx, dword [ebx + 0xca8]
mov eax, dword [ebx + 0xca4]
call fcn.004666e0
lea eax, [ebx + 0xcf8]
xor ecx, ecx
mov edx, 0x1c
call fcn.004032f4
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x54], eax
lea eax, [ebx + 0xd08]
mov edx, dword [esp + 0x50]
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0xd10], eax
push 0
push 0x260
push 0
push 0
call fcn.004427c8
lea edx, [ebx + 0x494]
lea eax, [esp + 0x68]
mov ecx, 0x3ff
call fcn.0040da74
mov esi, eax
mov edx, 0x4754ac
lea eax, [esp + esi*2 + 0x68]
mov ecx, 1
call fcn.00414414
push 0x14
lea eax, [esp + 0x966]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x14]
push eax
push 0x60
lea eax, [esp + 0x8b8]
push eax
lea eax, [esp + 0x84]
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x4753e4
mov byte [ebx + 0xdf6], 0
mov byte [ebx + 0xd56], 0
jmp 0x475412
push 0x14
lea edx, [ebx + 0xdf6]
lea eax, [esp + 0x8a4]
or ecx, 0xffffffff
call fcn.0040d1d4
push 0x5f
lea edx, [ebx + 0xd56]
lea eax, [esp + 0x966]
or ecx, 0xffffffff
call fcn.0040d1d4
push 0
push 0x270
push 0
push 0
call fcn.004427c8
mov dword [ebx + 0xcd0], edi
mov dword [ebx + 0xcc0], 0xb
mov word [ebx + 0xcc4], 1
mov word [ebx + 0xcc6], 0
mov word [ebx + 0xcc8], 0
test byte [ebx + 0xcdb], 0x40
je 0x47545e
or word [ebx + 0xcc8], 1
xor eax, eax
mov dword [ebx + 0xc], eax
push 0
push 0x280
push 0
push 0
call fcn.004427c8
jmp 0x475487
push 0
push 0x300
push 0
push 0
call fcn.004427c8
jmp 0x47548b
mov byte [esp], 1
push 0
push 0
xor edx, edx
mov eax, 0x1210
call fcn.004426b4
movzx eax, byte [esp]
add esp, 0x98c
pop ebp
pop edi
pop esi
pop ebx
ret