Function at 0x508d10
Capabilities:
Get disk information
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5d0968
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x4c8]
xor ebp, ebp
cmp dword [0x660c58], ebp
je 0x508d63
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea eax, [esp + 0x1ac]
push eax
mov edi, 1
push ebp
mov dword [0x660c58], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x2ac]
push ecx
lea edx, [esp + 0x3b4]
push edx
push ebp
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1b8]
push ecx
call fcn.005b7149
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x508ddd
lea eax, [esp + 0x2ac]
push eax
lea ecx, [esp + 0x3b4]
push ecx
lea edx, [esp + 0x1b0]
push str.c:_s_s
push edx
call fcn.005b1b4c
add esp, 0x10
lea eax, [esp + 0x1a8]
mov dword [esp + 0x188], 0xf
mov dword [esp + 0x184], ebp
mov byte [esp + 0x174], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x508e01
sub eax, edx
push eax
lea eax, [esp + 0x1ac]
push eax
lea ecx, [esp + 0x178]
call fcn.00409790
push 4
push 0x5f4b24
lea ecx, [esp + 0x178]
mov dword [esp + 0x4c8], ebp
call fcn.004080f0
push 0x40
call fcn.00595e8d
mov esi, eax
add esp, 4
mov dword [esp + 0x50], esi
cmp esi, ebp
mov byte [esp + 0x4c0], 1
je 0x508e69
mov ecx, esi
call fcn.004fe570
mov dword [esi], vtable.BaseLib::CExecptionTask.0
mov dword [esi + 0x3c], edi
jmp 0x508e6b
xor esi, esi
mov edx, dword [esi]
mov eax, dword [edx + 4]
push ebp
push edi
mov ecx, esi
mov byte [esp + 0x4c8], 0
call eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x174]
mov edi, 0x10
cmp dword [esp + 0x188], edi
jae 0x508ea5
lea eax, [esp + 0x174]
push ebx
push eax
call fcn.00508180
add esp, 8
cmp eax, ebp
mov dword [esi + 0x3c], ebp
je 0x5092ae
push 1
push 2
lea ecx, [esp + 0xf8]
call fcn.0040b040
push 1
push 2
lea ecx, [esp + 0x78]
mov byte [esp + 0x4c8], 2
call fcn.0040b040
lea ecx, [esp + 0x14]
push 1
mov bl, 3
push ecx
mov byte [esp + 0x4c8], bl
call fcn.00501110
add esp, 8
push str.version.txt
push 0x5f4230
push eax
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x4d0], 4
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
cmp dword [esp + 0x2c], edi
mov byte [esp + 0x4c0], bl
jb 0x508f43
mov eax, dword [esp + 0x18]
push eax
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x74]
call fcn.004094f0
cmp dword [eax + 0x18], edi
mov byte [esp + 0x4c0], 5
jb 0x508f63
mov eax, dword [eax + 4]
jmp 0x508f66
add eax, 4
push eax
call fcn.0051ae10
add esp, 4
cmp dword [esp + 0x2c], edi
mov esi, eax
mov byte [esp + 0x4c0], bl
jb 0x508f8b
mov edx, dword [esp + 0x18]
push edx
call fcn.00595eb8
add esp, 4
cmp esi, ebp
je 0x50922e
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x74]
call fcn.004094f0
cmp dword [eax + 0x18], edi
mov byte [esp + 0x4c0], 6
jb 0x508fb3
mov eax, dword [eax + 4]
jmp 0x508fb6
add eax, 4
push eax
lea ecx, [esp + 0x190]
push ecx
call fcn.0051afa0
add esp, 8
cmp dword [esp + 0x6c], edi
mov bl, 8
mov byte [esp + 0x4c0], bl
jb 0x508fe3
mov edx, dword [esp + 0x58]
push edx
call fcn.00595eb8
add esp, 4
mov esi, 0xf
push 0x62b600
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebp
mov byte [esp + 0x5c], 0
call fcn.0040be30
push 0x5f4b14
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c4], 9
call fcn.0040be30
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x194]
push edx
mov byte [esp + 0x4cc], 0xa
call fcn.004fc450
add esp, 0xc
cmp dword [esp + 0x48], edi
jb 0x50904e
mov eax, dword [esp + 0x34]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebp
mov byte [esp + 0x34], 0
mov byte [esp + 0x4c0], bl
jb 0x509075
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00595eb8
add esp, 4
push 0x62b600
lea ecx, [esp + 0x18]
call fcn.0040be30
push 0x5f4b10
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c4], 0xb
call fcn.0040be30
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x194]
push ecx
mov byte [esp + 0x4cc], 0xc
call fcn.004fc450
add esp, 0xc
cmp dword [esp + 0x48], edi
jb 0x5090ce
mov edx, dword [esp + 0x34]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebp
mov byte [esp + 0x34], 0
mov byte [esp + 0x4c0], bl
jb 0x5090f5
mov eax, dword [esp + 0x18]
push eax
call fcn.00595eb8
add esp, 4
push 0x62b600
lea ecx, [esp + 0x18]
call fcn.0040be30
push 0x5f42a4
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c4], 0xd
call fcn.0040be30
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x194]
push eax
mov byte [esp + 0x4cc], 0xe
call fcn.004fc450
add esp, 0xc
cmp dword [esp + 0x48], edi
jb 0x50914e
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebp
mov byte [esp + 0x34], 0
mov byte [esp + 0x4c0], bl
jb 0x509175
mov edx, dword [esp + 0x18]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x1a4], edi
mov eax, dword [esp + 0x190]
jae 0x50918c
lea eax, [esp + 0x190]
push eax
push 0x5f4230
lea eax, [esp + 0xf8]
push 0x5f4b04
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xf4]
call fcn.004094f0
cmp dword [eax + 0x18], edi
mov byte [esp + 0x4c0], 0xf
jb 0x5091dc
mov eax, dword [eax + 4]
jmp 0x5091df
add eax, 4
cmp dword [esp + 0x188], edi
mov ecx, dword [esp + 0x174]
jae 0x5091f6
lea ecx, [esp + 0x174]
push eax
push ecx
call fcn.00508b30
add esp, 8
cmp dword [esp + 0x2c], edi
jb 0x509213
mov edx, dword [esp + 0x18]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x1a4], edi
jb 0x509253
mov eax, dword [esp + 0x190]
push eax
call fcn.00595eb8
add esp, 4
jmp 0x509253
cmp dword [esp + 0x188], edi
mov eax, dword [esp + 0x174]
jae 0x509245
lea eax, [esp + 0x174]
push 0x5f4b04
push eax
call fcn.00508b30
add esp, 8
lea ecx, [esp + 0xbc]
mov byte [esp + 0x4c0], 2
call fcn.00409e00
lea ecx, [esp + 0xbc]
mov esi, vtable.std::ios_base.0
push ecx
mov dword [esp + 0xc0], esi
call fcn.005cdcde
add esp, 4
lea ecx, [esp + 0x13c]
mov byte [esp + 0x4c0], 0
call fcn.00409e00
lea edx, [esp + 0x13c]
push edx
mov dword [esp + 0x140], esi
call fcn.005cdcde
add esp, 4
cmp dword [esp + 0x188], edi
jb 0x5092c7
mov eax, dword [esp + 0x174]
push eax
call fcn.00595eb8
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.005b1988
add esp, 0x4b0
ret 4