Function at 0x518500
Capabilities:
Get disk information
Get disk information via ioctl
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x59a206
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x844
push ebx
push ebp
push esi
push edi
xor edx, edx
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x84]
mov dword [esp + 0x80], edx
mov dword [esp + 0xf8], edx
rep stosd dword es:[edi], eax
mov ecx, 0x1d
lea edi, [esp + 0xfc]
rep stosd dword es:[edi], eax
mov ecx, 0x1d
lea edi, [esp + 0x174]
mov dword [esp + 0x170], edx
xor ebp, ebp
rep stosd dword es:[edi], eax
mov cx, word [0x5e5a54]
mov eax, dword [str..A:]
mov word [esp + 0x50], cx
lea ecx, [esp + 0x170]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xf8]
mov dword [esp + 0x4c], eax
mov al, byte [0x5e5a56]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x80]
mov byte [esp + 0x52], al
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x53], 0
mov eax, 1
mov dword [esp + 0x24], edx
xor ebx, ebx
mov dword [esp + 0x20], ecx
jmp 0x5185bf
mov eax, dword [esp + 0x30]
xor edx, edx
mov esi, eax
shl eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x864]
test esi, eax
mov dword [esp + 0x10], esi
je 0x5187b5
cmp ebx, edx
je 0x5185e7
cmp ebx, 1
jne 0x518698
cmp ebp, 0x1e
jae 0x5187bf
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x49d]
mov byte [esp + 0x49c], 0
rep stosd dword es:[edi], eax
mov dx, word [0x5d6bf8]
mov cl, bl
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x5d6bfa]
mov word [esp + 0x18], dx
mov byte [esp + 0x1a], al
lea edx, [esp + 0x49c]
push 0x104
lea eax, [esp + 0x1c]
add cl, 0x41
push edx
push eax
mov byte [esp + 0x24], cl
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea ecx, [esp + 0x49c]
push ecx
call fcn.00417675
lea edx, [esp + 0x4a0]
push str.floppy
push edx
call fcn.00417769
add esp, 0xc
test eax, eax
je 0x518698
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
inc ebp
mov dword [eax], ebx
mov dword [ecx], esi
mov dword [edx], 0x3e8
add eax, 4
add ecx, 4
add edx, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
jmp 0x5187b5
push 0
push 0x80
push 3
mov al, bl
push 0
push 7
lea ecx, [esp + 0x60]
add al, 0x41
push SysReAllocStringLen
push ecx
mov byte [esp + 0x6c], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5187b5
xor edx, edx
xor eax, eax
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x40], edx
push eax
push ecx
lea edx, [esp + 0x40]
push 0xc
push edx
push eax
push eax
push 0x2d1080
push esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x518736
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x51872c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x864]
shr eax, 1
not eax
and ecx, eax
mov dword [esp + 0x864], ecx
jmp 0x5187b5
mov dword [esp + 0x24], 1
jmp 0x5187b5
mov ecx, dword [esp + 0x38]
cmp ecx, 7
je 0x518749
cmp ecx, 5
je 0x518749
cmp ecx, 2
jne 0x5187b5
mov edx, dword [esp + 0x3c]
xor eax, eax
test ebp, ebp
jbe 0x518780
cmp dword [esp + eax*4 + 0x80], edx
jne 0x518765
cmp dword [esp + eax*4 + 0x170], ecx
je 0x51876c
inc eax
cmp eax, ebp
jb 0x518753
jmp 0x518780
mov esi, dword [esp + 0x10]
mov edi, dword [esp + eax*4 + 0xf8]
or edi, esi
mov dword [esp + eax*4 + 0xf8], edi
cmp eax, ebp
jne 0x5187b5
cmp ebp, 0x1e
jae 0x5187bf
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
inc ebp
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
add eax, 4
mov dword [edx], esi
mov esi, dword [esp + 0x14]
add edx, 4
mov dword [esp + 0x20], eax
mov dword [esi], ecx
add esi, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], esi
inc ebx
cmp ebx, 0x1a
jl 0x5185b9
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], ebp
test eax, eax
je 0x5188b2
xor esi, esi
lea ebx, [ebp*4]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [esp + 0x5c]
push str..PhysicalDrive_d
push ecx
stosb byte es:[edi], al
call fcn.00415a2b
add esp, 0xc
lea edx, [esp + 0x58]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x518866
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x78
jae 0x518870
xor eax, eax
mov ecx, 7
test ebx, ebx
jbe 0x518850
cmp dword [esp + eax*4 + 0x80], esi
jne 0x51884b
cmp dword [esp + eax*4 + 0x170], ecx
je 0x518850
inc eax
cmp eax, ebp
jb 0x518839
cmp eax, ebp
jne 0x518866
mov dword [esp + ebx + 0x80], esi
mov dword [esp + ebx + 0x170], ecx
inc ebp
add ebx, 4
inc esi
cmp esi, 4
jl 0x5187d8
mov esi, dword [esp + 0x864]
mov dword [esp + 0x2c], ebp
test ebp, ebp
jbe 0x5188b2
lea ecx, [esp + 0xf8]
mov edx, ebp
mov eax, dword [ecx]
test eax, eax
jbe 0x518892
not eax
and esi, eax
add ecx, 4
dec edx
jne 0x518888
test ebp, ebp
jbe 0x5188b2
lea eax, [esp + 0xf8]
mov ecx, ebp
cmp dword [eax], 0
jne 0x5188ac
mov dword [eax], esi
add eax, 4
dec ecx
jne 0x5188a5
xor eax, eax
cmp ebp, eax
mov ebp, dword [esp + 0x868]
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
jbe 0x5192e5
mov ebx, dword [esp + 0x20]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
mov esi, dword [esp + ebx*4 + 0x170]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, 7
mov dword [esp + 0x28], esi
stosb byte es:[edi], al
jne 0x518916
mov eax, dword [esp + ebx*4 + 0x80]
lea ecx, [esp + 0x58]
push eax
push str..PhysicalDrive_d
push ecx
call fcn.00415a2b
add esp, 0xc
cmp esi, 5
je 0x518920
cmp esi, 2
jne 0x51893a
mov edx, dword [esp + ebx*4 + 0x80]
lea eax, [esp + 0x58]
push edx
push str..CdRom_d
push eax
call fcn.00415a2b
add esp, 0xc
cmp esi, 0x3e8
jne 0x518b72
mov edx, dword [esp + 0x24]
xor esi, esi
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x5a4]
mov dword [esp + 0x5a0], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + ebx*4 + 0xf8]
inc edx
mov dword [esp + 0x5a8], eax
mov eax, edx
shl eax, 4
add eax, edx
mov dword [esp + 0x24], edx
mov ecx, 4
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x86c]
mov dword [esp + 0x5a4], ecx
mov dword [eax + edx*8 - 0x198], ecx
mov ecx, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x28], ebx
inc ebx
cmp ebx, esi
jne 0x5189c6
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x5189bb
push eax
call fcn.00579886
add esp, 4
mov dword [ebp + 4], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
jmp 0x518b43
mov edi, dword [ebp + 4]
cmp edi, esi
jne 0x518a0d
lea eax, [ebx*8]
sub eax, ebx
lea ecx, [eax + eax*2]
lea edx, [ebx + ecx*2]
lea esi, [ebx + edx*4]
shl esi, 2
push esi
call fcn.0057985d
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 4], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x518b43
cmp ebx, dword [ebp + 0xc]
jg 0x518a5c
cmp ebx, ecx
jle 0x518a54
lea edx, [ecx*8]
mov eax, ebx
sub edx, ecx
sub eax, ecx
lea edx, [edx + edx*2]
lea edx, [ecx + edx*2]
lea ecx, [ecx + edx*4]
lea edi, [edi + ecx*4]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ecx + ecx*2]
lea ecx, [eax + edx*2]
lea ecx, [eax + ecx*4]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 8], ebx
jmp 0x518b43
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x518a86
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x518a7a
mov eax, 4
jmp 0x518a86
cmp eax, 0x400
jle 0x518a86
mov eax, 0x400
mov ecx, dword [ebp + 0xc]
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x518a97
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
lea eax, [ecx + edx*4]
shl eax, 2
push eax
call fcn.0057985d
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, eax
mov dword [esp + 0x18], eax
lea edx, [ecx*8]
sub edx, ecx
lea edx, [edx + edx*2]
lea edx, [ecx + edx*2]
lea ecx, [ecx + edx*4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edx
lea esi, [edx*8]
sub esi, edx
lea esi, [esi + esi*2]
lea esi, [edx + esi*2]
lea edx, [edx + esi*4]
lea edi, [eax + edx*4]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
xor eax, eax
lea ecx, [ecx + edx*4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
push eax
call fcn.00579886
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov ecx, dword [esp + 0x28]
lea esi, [esp + 0x5a0]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
lea eax, [ecx + edx*4]
mov ecx, dword [ebp + 4]
lea edi, [ecx + eax*4]
mov ecx, 0xad
rep movsd dword es:[edi], dword [esi]
jmp 0x5192b6
push 0
push 0x80
push 3
push 0
push 7
lea edx, [esp + 0x6c]
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5192b6
xor eax, eax
xor edi, edi
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], eax
push edi
push ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x48], eax
push 8
push edx
lea eax, [esp + 0x48]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x518bee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5192b6
mov edx, dword [esp + 0x18]
cmp edx, edi
je 0x518c1f
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
cmp ecx, eax
jb 0x518c16
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x518c58
push edx
call fcn.00579886
add esp, 4
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0057985d
mov edx, eax
add esp, 4
cmp edx, edi
mov dword [esp + 0x18], edx
je 0x5192cd
mov ecx, dword [esp + 0x48]
xor eax, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x34]
push 0
push ecx
push eax
push edx
lea ecx, [esp + 0x48]
push 0xc
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x5192b6
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
cmp eax, 7
je 0x518cb7
cmp eax, 3
je 0x518cb7
cmp eax, 2
je 0x518cb7
cmp eax, 1
je 0x518cb7
cmp eax, 0xb
je 0x518cb7
cmp eax, 0x10
je 0x518cb7
cmp eax, 0x11
jne 0x5192b6
mov edx, dword [esp + 0x24]
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x1ec]
mov dword [esp + 0x1e8], 0
inc edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp eax, 7
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
jne 0x518d99
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1c]
cmp eax, 7
jne 0x518d03
mov ecx, 1
mov dword [esp + 0x10], ecx
cmp eax, 3
je 0x518d1c
cmp eax, 1
je 0x518d1c
cmp eax, 0xb
je 0x518d1c
cmp eax, 0x10
je 0x518d1c
cmp eax, 0x11
jne 0x518d25
mov ecx, 2
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x86c]
cmp edx, 0x1e
jae 0x519018
test ebx, ebx
je 0x519018
cmp dword [esp + 0x1ec], 5
je 0x518d65
mov esi, edx
xor eax, eax
shl esi, 4
add esi, edx
mov ecx, 0x66
lea esi, [esi + esi*2]
lea edi, [ebx + esi*8 - 0x198]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xa], 0
je 0x518dd3
mov esi, 1
cmp ecx, esi
jne 0x518e2c
mov eax, edx
mov dword [esp + 0x1ec], esi
shl eax, 4
add eax, edx
lea ecx, [eax + eax*2]
mov dword [ebx + ecx*8 - 0x198], esi
jmp 0x518e2c
mov esi, 5
cmp edx, 0x1e
mov dword [esp + 0x1ec], esi
jae 0x519018
mov ebx, dword [esp + 0x86c]
test ebx, ebx
je 0x518d2c
mov eax, edx
shl eax, 4
add eax, edx
lea eax, [eax + eax*2]
mov dword [ebx + eax*8 - 0x198], esi
jmp 0x518d2c
cmp ecx, 1
jne 0x518df7
mov eax, edx
mov ecx, 2
shl eax, 4
add eax, edx
mov dword [esp + 0x1ec], ecx
lea edx, [eax + eax*2]
mov dword [ebx + edx*8 - 0x198], ecx
jmp 0x518e2c
cmp ecx, 2
jne 0x518e2c
mov eax, edx
mov ecx, 3
shl eax, 4
add eax, edx
mov dword [esp + 0x1ec], ecx
lea eax, [eax + eax*2]
lea ebx, [ebx + eax*8]
mov dword [ebx - 0x198], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + ecx*4 + 0x80]
mov dword [ebx - 0x194], edx
mov eax, dword [esp + 0x20]
xor edx, edx
xor esi, esi
mov ecx, dword [esp + eax*4 + 0xf8]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1f0], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], esi
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x518e58
lea edx, [eax + ecx]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x518e67
add eax, ecx
mov dword [esp + 0x14], eax
mov esi, eax
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x518e74
add eax, ecx
mov dword [esp + 0x10], eax
test edx, edx
jne 0x518e85
test esi, esi
je 0x518fc0
jmp 0x518f25
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
test ebx, ebx
jle 0x518f1d
cmp ebx, 0xc6
jg 0x518ed9
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x1f4]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x28], esi
mov esi, edi
mov edi, dword [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov byte [esp + ebx + 0x1f4], 0x20
cmp ebx, 0x77
jg 0x518f1d
mov ecx, dword [esp + 0x24]
mov edi, edx
mov eax, ecx
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x86c]
lea ebx, [eax + ecx*8 - 0x190]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x518fc0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1f4]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
cmp ecx, 0xc7
ja 0x518f7c
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x1f4]
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
test edx, edx
jbe 0x518fc0
cmp edx, 0x77
ja 0x518fc0
mov ecx, dword [esp + 0x24]
mov edi, esi
mov eax, ecx
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x86c]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8 - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x519018
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x519018
cmp ecx, 0x4f
ja 0x519018
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x86c]
mov eax, ecx
mov edi, dword [esp + 0x10]
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*2]
xor eax, eax
lea edx, [edx + ecx*8 - 0xa0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
push 0x5efa58
lea ecx, [esp + 0x20]
mov edi, dword [esi + 0x18]
call fcn.00426f50
test edi, edi
mov dword [esp + 0x85c], 0
je 0x5190cc
cmp edi, 0xffffffff
je 0x5190cc
mov ecx, dword [0x59f140]
add edi, esi
mov dword [esp + 0x30], ecx
push edi
lea ecx, [esp + 0x34]
call fcn.00427bc0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x860], 1
call fcn.00427aa0
lea ecx, [esp + 0x30]
mov byte [esp + 0x85c], 0
call fcn.00427900
push 0x5de3ec
lea ecx, [esp + 0x20]
call fcn.0042b450
push 0x5de3ec
lea ecx, [esp + 0x20]
call fcn.0042b190
mov ecx, 0x3c
xor eax, eax
lea edi, [esp + 0x3ac]
push 0xef
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x3b0]
push eax
push ecx
call fcn.0052c232
add esp, 0xc
mov edx, dword [ebp + 8]
xor edi, edi
mov ebx, edx
mov dword [esp + 0x14], ebx
inc ebx
cmp ebx, edi
jne 0x5190fa
mov eax, dword [ebp + 4]
cmp eax, edi
je 0x5190ef
push eax
call fcn.00579886
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x519278
mov esi, dword [ebp + 4]
cmp esi, edi
jne 0x519141
lea eax, [ebx*8]
sub eax, ebx
lea edx, [eax + eax*2]
lea eax, [ebx + edx*2]
lea esi, [ebx + eax*4]
shl esi, 2
push esi
call fcn.0057985d
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 4], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x519278
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x519192
cmp ebx, edx
jle 0x51918a
lea eax, [edx*8]
mov ecx, ebx
sub eax, edx
sub ecx, edx
lea eax, [eax + eax*2]
lea eax, [edx + eax*2]
lea edx, [edx + eax*4]
lea eax, [ecx*8]
sub eax, ecx
lea edi, [esi + edx*4]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
xor eax, eax
lea ecx, [ecx + edx*4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 8], ebx
jmp 0x519278
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x5191bc
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5191b0
mov eax, 4
jmp 0x5191bc
cmp eax, 0x400
jle 0x5191bc
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x5191ca
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
lea eax, [ecx + edx*4]
shl eax, 2
push eax
call fcn.0057985d
mov edx, eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, edx
lea ecx, [eax*8]
mov dword [esp + 0x2c], edx
sub ecx, eax
lea ecx, [ecx + ecx*2]
lea ecx, [eax + ecx*2]
lea ecx, [eax + ecx*4]
shl ecx, 2
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
sub eax, ecx
lea esi, [ecx*8]
sub esi, ecx
lea esi, [esi + esi*2]
lea esi, [ecx + esi*2]
lea ecx, [ecx + esi*4]
lea edi, [edx + ecx*4]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ecx + ecx*2]
lea ecx, [eax + edx*2]
lea ecx, [eax + ecx*4]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
push eax
call fcn.00579886
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x1e8]
mov dword [esp + 0x85c], 0xffffffff
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
mov edx, dword [ebp + 4]
lea ecx, [ecx + eax*4]
lea edi, [edx + ecx*4]
mov ecx, 0xad
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
call fcn.00427900
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x5188d3
jmp 0x5192d4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5192e5
push eax
call fcn.00579886
add esp, 4
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x854]
pop edi
pop esi
pop ebp
setne al
pop ebx
mov dword fs:[0], ecx
add esp, 0x850
ret