Function at 0x49ea70
Capabilities:
Get disk size
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x818
push ebx
push ebp
push esi
mov esi, dword [esp + 0x82c]
push edi
mov dword [esp + 0x50], 1
lea eax, [esp + 0x3d8]
mov ecx, 0xee92
mov dword [esp + 0x18], eax
xor eax, eax
mov edi, esi
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x82c]
xor ebp, ebp
push ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x4c], ebx
call fcn.0049d7d0
lea edx, [esp + 0x8c]
mov byte [esi], al
mov eax, dword [esp + 0x830]
push 0x2a
push edx
push ebp
push eax
mov dword [esi + 0x10], 1
call fcn.004978c0
add esp, 0x14
test eax, eax
jne 0x49eb0c
mov byte [esi + 0x3b580], 2
mov byte [esi + 0x3b581], 3
jmp 0x49eb31
mov al, byte [esp + 0x8a]
mov dword [esp + 0x24], 1
mov cl, al
shr al, 2
and cl, 3
and al, 3
mov byte [esi + 0x3b580], cl
mov byte [esi + 0x3b581], al
mov eax, dword [esi + 0x10]
mov dl, byte [esi]
mov edi, dword [esp + 0x82c]
mov cl, byte [esi + 0x3b580]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x3d8]
push 0x450
push eax
mov byte [esp + 0x1f], dl
mov dl, byte [esi + 0x3b581]
push 2
push 1
push edi
mov byte [esp + 0x33], cl
mov byte [esp + 0x32], dl
call fcn.00497540
add esp, 0x14
test eax, eax
je 0x49ec12
mov ecx, dword [esp + 0x3d8]
mov edx, dword [esp + 0x3d9]
and ecx, 0xff
and edx, 0xff
shl ecx, 8
lea eax, [ecx + edx + 2]
cmp eax, 4
mov dword [esp + 0x20], eax
jle 0x49ec12
cmp eax, 0x450
jbe 0x49ed70
push eax
call fcn.00487e60
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x49ec12
mov ecx, dword [esp + 0x20]
mov edx, eax
push ecx
push edx
push 2
push 1
push edi
call fcn.00497540
add esp, 0x14
test eax, eax
jne 0x49ed4e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push 2
push 1
push edi
call fcn.00497540
add esp, 0x14
test eax, eax
jne 0x49ed4e
mov edx, dword [esp + 0x18]
push edx
call fcn.004b9ede
add esp, 4
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x82c]
mov ecx, 0xee92
xor eax, eax
mov edi, esi
push 0x324
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x1b]
mov al, byte [esp + 0x23]
mov dword [esi + 0x10], edx
lea edx, [esp + 0xb8]
push edx
mov byte [esi], cl
mov cl, byte [esp + 0x26]
push 0
push 0
push ebp
mov byte [esi + 0x3b580], al
mov byte [esi + 0x3b581], cl
call fcn.00497540
add esp, 0x14
test eax, eax
jne 0x49f090
mov ecx, 0xc9
lea edi, [esp + 0xb4]
mov dword [esp + 0x2c], eax
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0xb8]
push eax
push 0x324
push ecx
push 0
push 0
push 0x24000
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x49f088
cmp dword [0x59ad50], 2
jge 0x49f002
push 0x800
call fcn.00487e70
mov edi, eax
add esp, 4
test edi, edi
mov ebx, 1
je 0x49f007
push ebx
push 0x10
push edi
push 0
push ebp
call fcn.004420e0
add esp, 0x14
cmp eax, ebx
jne 0x49efe9
xor eax, eax
xor edx, edx
mov ah, byte [edi + 0x53]
mov dl, byte [edi + 0x51]
mov al, byte [edi + 0x52]
xor ecx, ecx
mov cl, byte [edi + 0x50]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
je 0x49efe9
cmp eax, 0x10000000
jae 0x49efe9
xor ebp, ebp
mov dword [esi + 0x10], ebx
mov dword [esi + 0x3b3cc], ebx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x20], 2
mov dword [esi + 0x214], ebp
mov dword [esi + 0x9e4], eax
mov dword [esi + 0x218], eax
mov dword [esi + 0x3b3d0], ebp
mov dword [esi + 0x3b578], 0x800
mov dword [esp + 0x10], ebx
jmp 0x49efeb
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cl, byte [eax]
mov dl, byte [eax + 1]
shl ecx, 8
lea eax, [ecx + edx + 2]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jne 0x49ec12
mov eax, ecx
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x3c], 0
mov cl, byte [edx + 3]
mov dword [esi + 0x3b3cc], ecx
lea ecx, [eax - 4]
mov eax, 0xba2e8ba3
mul ecx
shr edx, 3
mov dword [esp + 0x40], edx
je 0x49ef8d
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
add eax, 7
xor ecx, ecx
mov cl, byte [eax - 3]
cmp ecx, dword [esp + 0x4c]
je 0x49edc8
xor edi, edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
xor ebx, ebx
mov dword [esp + 0x38], edi
mov cl, byte [eax - 2]
and ecx, 0xfffffff0
cmp cl, 0x10
jne 0x49ef79
mov cl, byte [eax]
cmp cl, 0xa0
jne 0x49ee10
xor ecx, ecx
mov cl, byte [eax + 5]
mov edi, ecx
test edi, edi
mov dword [esp + 0x28], edi
je 0x49ec12
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x49ee02
inc ecx
cmp edi, ecx
jne 0x49ec12
xor ecx, ecx
mov cl, byte [eax + 6]
mov dword [esp + 0x38], ecx
jmp 0x49ef79
cmp cl, 0xa1
jne 0x49ee33
xor ecx, ecx
mov cl, byte [eax + 5]
test ecx, ecx
mov dword [esp + 0x30], ecx
je 0x49ec12
cmp ecx, edi
jl 0x49ec12
jmp 0x49ef79
cmp cl, 0xa2
jne 0x49ee61
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax + 5]
mov bl, byte [eax + 6]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*4 - 2]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ebx, [ecx + ecx*4]
xor ecx, ecx
mov cl, byte [eax + 7]
add ebx, ecx
jmp 0x49ef79
cmp cl, 1
jb 0x49ef79
cmp cl, 0x63
ja 0x49ef79
and ecx, 0xff
mov edi, ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x49ec12
mov edx, dword [esp + 0x30]
test edx, edx
je 0x49ec12
test ebx, ebx
je 0x49ec12
cmp edi, ecx
jl 0x49ec12
cmp edi, edx
jg 0x49ec12
mov edx, dword [esp + 0x34]
inc edx
cmp edi, edx
jne 0x49ec12
test ebp, ebp
jne 0x49eebf
mov dword [esi + 0x10], edi
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 5]
mov dl, byte [eax + 6]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4 - 2]
xor edx, edx
mov dl, byte [eax + 7]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
add ecx, edx
test ebp, ebp
mov dword [esi + ebp*4 + 0x214], ecx
jbe 0x49ef02
cmp edi, dword [esp + 0x28]
jle 0x49ef02
sub ecx, dword [esi + ebp*4 + 0x210]
mov dword [esi + ebp*4 + 0x9e0], ecx
cmp edi, dword [esp + 0x30]
jne 0x49ef1a
mov edx, dword [esi + ebp*4 + 0x214]
mov ecx, ebx
sub ecx, edx
mov dword [esi + ebp*4 + 0x9e4], ecx
xor edx, edx
mov dl, byte [eax - 3]
dec edx
mov dword [esi + ebp*4 + 0x3b3d0], edx
mov cl, byte [eax - 2]
test cl, 4
jne 0x49ef36
mov byte [esi + ebp + 0x20], 1
jmp 0x49ef65
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x49ef45
mov byte [esi + ebp + 0x20], 2
jmp 0x49ef65
cmp ecx, 0x10
je 0x49ef60
cmp ecx, 1
je 0x49ef60
cmp ecx, 0x20
je 0x49ef60
cmp ecx, 2
je 0x49ef60
mov byte [esi + ebp + 0x20], 2
jmp 0x49ef65
mov byte [esi + ebp + 0x20], 4
mov edx, dword [esi + 0xc]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x28]
inc edx
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x40]
inc ebp
mov ecx, dword [esp + 0x3c]
add eax, 0xb
inc ecx
cmp ecx, edx
mov dword [esp + 0x3c], ecx
jb 0x49eda9
mov ecx, dword [esi + 0xc]
mov edi, 1
cmp ecx, edi
jl 0x49ec12
mov eax, dword [esi + 0x3b3cc]
cmp eax, edi
jl 0x49ec12
cmp ecx, eax
jl 0x49ec12
cmp dword [esp + 0x20], 0x450
jbe 0x49efca
mov eax, dword [esp + 0x18]
push eax
call fcn.00487ea0
add esp, 4
cmp byte [esi], 0xff
jne 0x49efd2
mov byte [esi], 1
mov dword [esi + 0x3b578], 0x930
mov dword [esp + 0x10], edi
mov dword [esp + 0x54], edi
jmp 0x49f2d2
xor ebp, ebp
push edi
call fcn.00487ea0
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebp
jne 0x49f2c8
jmp 0x49f009
mov ebx, 1
xor ebp, ebp
cmp dword [esp + 0x24], ebp
je 0x49f065
mov al, byte [esp + 0x8a]
test al, 3
je 0x49f049
mov edx, dword [esp + 0x91]
mov ecx, dword [esp + 0x8c]
and edx, 0xff
and ecx, 0xff
shl edx, 8
add edx, ecx
cmp edx, ebx
jne 0x49f2c8
test al, 0xc
jne 0x49f2c8
mov dword [esi + 0x3b3cc], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x3b578], 0x800
mov dword [esp + 0x10], ebx
jmp 0x49f2d2
mov al, byte [esp + 0x17]
test al, al
jbe 0x49f2c8
cmp al, 0xff
jae 0x49f2c8
mov dword [esi + 0x3b578], ebp
mov dword [esp + 0x10], ebx
jmp 0x49f2d2
mov dword [esp + 0x48], 1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49f0be
mov edx, dword [esp + 0x91]
mov eax, dword [esp + 0x8c]
and edx, 0xff
and eax, 0xff
shl edx, 8
add edx, eax
mov dword [esi + 0x3b3cc], edx
jmp 0x49f0c8
mov dword [esi + 0x3b3cc], 1
mov ecx, dword [esi + 0x3b3cc]
test ecx, ecx
je 0x49f816
mov eax, dword [esp + 0xb6]
mov edx, dword [esp + 0xb7]
and eax, 0xff
and edx, 0xff
sub edx, eax
mov dword [esi + 0x10], eax
lea eax, [edx + 1]
cmp eax, 1
mov dword [esi + 0xc], eax
jl 0x49f816
cmp eax, 0x64
jg 0x49f816
cmp ecx, eax
jle 0x49f116
mov dword [esi + 0x3b3cc], eax
xor ebp, ebp
test eax, eax
jle 0x49f2be
mov edi, 0x9e4
lea eax, [esp + 0xbd]
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x49f17b
xor ecx, ecx
xor edx, edx
mov cl, byte [eax - 1]
mov dl, byte [eax]
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [eax + 1]
xor ebx, ebx
shl ecx, 8
mov bl, byte [eax + 7]
add ecx, edx
xor edx, edx
mov dl, byte [eax + 2]
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [eax + 8]
mov dword [edi + esi - 0x7d0], ecx
shl ebx, 8
add edx, ebx
xor ebx, ebx
mov bl, byte [eax + 9]
shl edx, 8
add edx, ebx
shl edx, 8
jmp 0x49f1c2
xor ecx, ecx
xor edx, edx
mov cl, byte [eax]
mov dl, byte [eax + 1]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4 - 2]
xor edx, edx
mov dl, byte [eax + 2]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
add ecx, edx
xor edx, edx
mov dl, byte [eax + 8]
xor ebx, ebx
mov bl, byte [eax + 9]
mov dword [edi + esi - 0x7d0], ecx
lea edx, [edx + edx*2]
lea edx, [edx + edx*4]
lea edx, [ebx + edx*4 - 2]
lea edx, [edx + edx*2]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
xor ebx, ebx
mov bl, byte [eax + 0xa]
add edx, ebx
sub edx, ecx
mov dword [edi + esi], edx
mov ecx, dword [edi + esi]
xor edx, edx
cmp ecx, edx
jl 0x49f816
mov cl, byte [esi]
test cl, cl
jbe 0x49f1e6
cmp cl, 0x10
jb 0x49f1eb
cmp cl, 0xff
jne 0x49f20a
mov ecx, dword [esi + 0x3b3cc]
mov ebx, dword [esi + 0xc]
cmp ecx, ebx
je 0x49f21c
cmp ecx, 1
jne 0x49f816
mov dword [edi + esi + 0x3a9ec], edx
jmp 0x49f223
cmp dword [esi + 0x3b3cc], 1
jne 0x49f21c
mov dword [edi + esi + 0x3a9ec], edx
jmp 0x49f223
mov dword [edi + esi + 0x3a9ec], ebp
test byte [eax - 4], 4
jne 0x49f244
mov byte [esi + ebp + 0x20], 1
mov cl, byte [esi]
cmp cl, 0xff
mov dword [esi + 0x3b578], 0x930
jne 0x49f2ac
mov byte [esi], 1
jmp 0x49f2ac
mov cl, byte [esi]
test cl, cl
jbe 0x49f29d
cmp cl, 0x10
jae 0x49f29d
cmp dword [esp + 0x24], edx
je 0x49f28c
mov cl, byte [esp + 0x90]
test cl, cl
je 0x49f28c
cmp cl, 0x10
jne 0x49f276
mov byte [esi + ebp + 0x20], 4
mov dword [esi + 0x3b578], 0x930
jmp 0x49f2ac
cmp cl, 0x20
jne 0x49f28c
mov byte [esi + ebp + 0x20], 4
mov dword [esi + 0x3b578], 0x930
jmp 0x49f2ac
mov byte [esi + ebp + 0x20], 2
mov dword [esi + 0x3b578], 0x930
jmp 0x49f2ac
mov byte [esi + ebp + 0x20], 2
mov dword [esi + 0x3b578], 0x800
mov ecx, dword [esi + 0xc]
inc ebp
add edi, 4
add eax, 8
cmp ebp, ecx
jl 0x49f12c
mov dword [esp + 0x10], 1
jmp 0x49f2d2
cmp dword [esp + 0x10], ebx
jne 0x49f816
cmp byte [esi], 0
jne 0x49f2f3
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x49f2f3
mov eax, dword [esp + 0x50]
test eax, eax
je 0x49f2f3
mov dword [esp + 0x50], 0
jmp 0x49ea89
mov ebp, dword [esp + 0x8e]
mov edx, dword [esp + 0x93]
xor edi, edi
mov ebx, 2
mov eax, dword [esi + 0xc]
cmp edi, eax
jl 0x49f33d
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49f682
mov ecx, edx
mov ebx, ebp
and ecx, 0xff
and ebx, 0xff
shl ecx, 8
add ecx, ebx
cmp edi, ecx
jge 0x49f682
mov ebx, 2
mov ecx, dword [esp + 0x838]
test ecx, ecx
je 0x49f36d
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49f36d
and edx, 0xff
and ebp, 0xff
shl edx, 8
add edx, ebp
cmp eax, edx
jne 0x49f36d
test edi, edi
jg 0x49f682
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x82c]
lea edx, [esp + 0x58]
push 0x30
add eax, edi
push edx
push eax
push 1
push 0
push ecx
call fcn.00497940
add esp, 0x18
test eax, eax
jne 0x49f3c8
test edi, edi
jne 0x49f682
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x82c]
lea edx, [esp + 0x58]
push 0x30
push edx
push eax
push 1
push edi
push ecx
call fcn.00497940
add esp, 0x18
test eax, eax
je 0x49f682
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x61]
mov eax, dword [esp + 0x62]
and ecx, 0xff
shl ecx, 8
and edx, 0xff
and eax, 0xff
add ecx, edx
mov edx, dword [esp + 0x63]
shl ecx, 8
add ecx, eax
mov eax, dword [esp + 0x70]
shl ecx, 8
and edx, 0xff
and eax, 0xff
add ecx, edx
mov edx, dword [esp + 0x71]
shl eax, 8
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x72]
shl eax, 8
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x73]
shl eax, 8
and edx, 0xff
add eax, edx
test edi, edi
jne 0x49f442
test ecx, ecx
jne 0x49f682
jmp 0x49f44a
test ecx, ecx
je 0x49f682
test eax, eax
je 0x49f682
cmp dword [esi + 0x3b578], 0x930
jne 0x49f544
cmp edi, dword [esi + 0xc]
jge 0x49f547
cmp ecx, dword [esi + edi*4 + 0x214]
jne 0x49f544
mov edx, dword [esi + edi*4 + 0x9e4]
cmp eax, edx
jg 0x49f544
sub edx, eax
cmp edi, 1
mov dword [esi + edi*4 + 0x854], edx
mov dword [esi + edi*4 + 0x6c4], edx
jl 0x49f544
mov edx, dword [esi + edi*4 + 0x6c0]
cmp edx, 0x98
jne 0x49f4e2
mov ebp, dword [esi + edi*4 + 0x3b3cc]
cmp ebp, dword [esi + edi*4 + 0x3b3d0]
jne 0x49f4e2
mov dword [esi + edi*4 + 0x850], ebx
mov edx, 0x96
mov dword [esi + edi*4 + 0x6c0], ebx
mov dword [esi + edi*4 + 0x534], edx
mov dword [esi + edi*4 + 0x3a4], edx
jmp 0x49f544
mov ebp, 0x96
cmp edx, ebp
jne 0x49f544
mov edx, dword [esi + edi*4 + 0x3b3cc]
cmp edx, dword [esi + edi*4 + 0x3b3d0]
jne 0x49f544
xor edx, edx
mov dword [esi + edi*4 + 0x850], edx
mov dword [esi + edi*4 + 0x6c0], edx
mov dword [esi + edi*4 + 0x534], ebp
mov dword [esi + edi*4 + 0x3a4], ebp
cmp dword [0x58add4], edx
je 0x49f544
mov edx, dword [esi + edi*4 + 0x9e0]
cmp edx, ebx
jle 0x49f544
add edx, 0xfffffffe
mov dword [esi + edi*4 + 0x9e0], edx
mov dword [esi + edi*4 + 0x850], ebx
mov dword [esi + edi*4 + 0x6c0], ebx
cmp edi, dword [esi + 0xc]
mov ebp, dword [esp + 0x8e]
mov edx, dword [esp + 0x93]
jl 0x49f60a
cmp byte [esi], 0x10
jb 0x49f682
mov ebx, dword [esp + 0x78]
and edx, 0xff
shl edx, 8
and ebp, 0xff
and ebx, 0xff
add edx, ebp
mov ebp, dword [esp + 0x5a]
shl ebx, 8
and ebp, 0xff
add ebx, ebp
cmp ebx, edx
jl 0x49f5f0
mov dl, byte [esi + 0x3b581]
test dl, dl
je 0x49f682
test byte [esp + 0x5f], 1
je 0x49f5f0
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x65]
and edx, 0xff
and ebx, 0xff
shl edx, 8
add edx, ebx
mov ebx, dword [esp + 0x66]
shl edx, 8
and ebx, 0xff
add edx, ebx
mov ebx, dword [esp + 0x67]
shl edx, 8
and ebx, 0xff
add edx, ebx
cmp edx, ecx
je 0x49f682
jle 0x49f5f0
sub edx, ecx
cmp edx, eax
jge 0x49f5f0
mov eax, edx
mov edx, dword [esi + 0xc]
mov ebp, dword [esp + 0x8e]
inc edx
mov ebx, 2
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x93]
mov dword [esi + edi*4 + 0x214], ecx
mov ecx, dword [esp + 0x5b]
mov dword [esi + edi*4 + 0x9e4], eax
mov eax, dword [esp + 0x79]
and eax, 0xff
and ecx, 0xff
shl eax, 8
lea eax, [eax + ecx - 1]
mov dword [esi + edi*4 + 0x3b3d0], eax
mov al, byte [esi]
cmp al, 0x10
jae 0x49f659
mov al, byte [esp + 0x5e]
and eax, 0xf
dec eax
je 0x49f659
dec eax
je 0x49f677
sub eax, 0xd
je 0x49f664
mov al, byte [edi + esi + 0x20]
test al, al
jne 0x49f65e
mov byte [edi + esi + 0x20], 2
inc edi
jmp 0x49f308
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x49f65e
mov byte [edi + esi + 0x20], 1
inc edi
jmp 0x49f308
mov byte [edi + esi + 0x20], 4
inc edi
jmp 0x49f308
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x49f699
mov ecx, dword [esi + eax*4 + 0x3b3cc]
inc ecx
mov dword [esi + 0x3b3cc], ecx
jmp 0x49f6a3
mov dword [esi + 0x3b3cc], 0
mov edx, dword [esp + 0x834]
push edx
call fcn.00448be0
mov dword [esi + 0x3b56c], eax
mov eax, dword [esi + 0xc]
mov edi, 1
add esp, 4
cmp eax, edi
jne 0x49f6ef
mov al, byte [esi]
cmp al, 0x16
je 0x49f6db
cmp al, 0x1a
je 0x49f6db
cmp al, 0x14
je 0x49f6db
cmp al, 0x27
je 0x49f6db
cmp al, 0x28
jne 0x49f6ef
mov ebp, dword [esp + 0x82c]
push esi
push eax
push ebp
call fcn.0049f870
add esp, 0xc
jmp 0x49f6f6
mov ebp, dword [esp + 0x82c]
mov al, byte [esi]
cmp al, 0x13
jne 0x49f70a
mov byte [esi + 0x3b580], 1
mov byte [esi + 0x3b581], 1
cmp al, 0x27
je 0x49f712
cmp al, 0x28
jne 0x49f729
cmp byte [esi + 0x3b580], 2
jne 0x49f729
mov byte [esi + 0x3b580], 1
mov byte [esi + 0x3b581], 1
cmp dword [esi + 0x3b3cc], edi
jg 0x49f73c
cmp dword [esi + 0xc], edi
jg 0x49f73c
cmp byte [esi + 0x20], 1
jne 0x49f742
mov dword [esi + 0x3b568], edi
push esi
push ebp
call fcn.0049e9e0
add esp, 8
neg eax
sbb eax, eax
xor ebx, ebx
inc eax
mov dword [esi + 0x3b564], eax
mov eax, dword [esi + 0x3b56c]
cmp eax, ebx
je 0x49f80c
cmp dword [esi + 0xc], edi
jne 0x49f7eb
cmp dword [esi + 0x214], 0xffffff6a
jne 0x49f7eb
cmp dword [esi + 0x9e4], ebx
jne 0x49f7eb
lea ecx, [esp + 0x2c]
push ebx
push ecx
lea edx, [esp + 0x48]
push 8
push edx
xor eax, eax
push ebx
push ebx
mov dword [esp + 0x58], eax
push 0x7405c
push ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x49f7dc
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push ebx
push 0x800
push eax
push ecx
mov dword [esi + 0x214], ebx
call fcn.004b73f0
mov dword [esi + 0x218], eax
mov dword [esi + 0x9e4], eax
mov dword [esi + 0x3b564], edi
jmp 0x49f7eb
mov ecx, 0xee92
xor eax, eax
mov edi, esi
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
cmp dword [esi + 0x3b56c], ebx
je 0x49f80c
cmp byte [esi], 0xff
jne 0x49f80c
cmp dword [esi + 0x9e4], 0x57e40
setl dl
dec edx
and edx, 0xf
inc edx
mov byte [esi], dl
push esi
push ebp
call fcn.0049fa70
add esp, 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x818
ret