Function at 0x507cf0
Capabilities:
Get disk information
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5cf908
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x4c8]
xor ebp, ebp
cmp dword [0x65ec58], ebp
je 0x507d43
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea eax, [esp + 0x1ac]
push eax
mov edi, 1
push ebp
mov dword [0x65ec58], 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.005b6129
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x507dbd
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.005b0b2c
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 0x507de1
sub eax, edx
push eax
lea eax, [esp + 0x1ac]
push eax
lea ecx, [esp + 0x178]
call fcn.004098b0
push 4
push 0x5f3b24
lea ecx, [esp + 0x178]
mov dword [esp + 0x4c8], ebp
call fcn.00408360
push 0x40
call fcn.00594e6d
mov esi, eax
add esp, 4
mov dword [esp + 0x50], esi
cmp esi, ebp
mov byte [esp + 0x4c0], 1
je 0x507e49
mov ecx, esi
call fcn.004fd550
mov dword [esi], vtable.BaseLib::CExecptionTask.0
mov dword [esi + 0x3c], edi
jmp 0x507e4b
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 0x507e85
lea eax, [esp + 0x174]
push ebx
push eax
call fcn.00507160
add esp, 8
cmp eax, ebp
mov dword [esi + 0x3c], ebp
je 0x50828e
push 1
push 2
lea ecx, [esp + 0xf8]
call fcn.0040b160
push 1
push 2
lea ecx, [esp + 0x78]
mov byte [esp + 0x4c8], 2
call fcn.0040b160
lea ecx, [esp + 0x14]
push 1
mov bl, 3
push ecx
mov byte [esp + 0x4c8], bl
call fcn.005000f0
add esp, 8
push str.version.txt
push 0x5f3230
push eax
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x4d0], 4
call fcn.00409360
add esp, 8
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
cmp dword [esp + 0x2c], edi
mov byte [esp + 0x4c0], bl
jb 0x507f23
mov eax, dword [esp + 0x18]
push eax
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x74]
call fcn.00409610
cmp dword [eax + 0x18], edi
mov byte [esp + 0x4c0], 5
jb 0x507f43
mov eax, dword [eax + 4]
jmp 0x507f46
add eax, 4
push eax
call fcn.00519e80
add esp, 4
cmp dword [esp + 0x2c], edi
mov esi, eax
mov byte [esp + 0x4c0], bl
jb 0x507f6b
mov edx, dword [esp + 0x18]
push edx
call fcn.00594e98
add esp, 4
cmp esi, ebp
je 0x50820e
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x74]
call fcn.00409610
cmp dword [eax + 0x18], edi
mov byte [esp + 0x4c0], 6
jb 0x507f93
mov eax, dword [eax + 4]
jmp 0x507f96
add eax, 4
push eax
lea ecx, [esp + 0x190]
push ecx
call fcn.0051a010
add esp, 8
cmp dword [esp + 0x6c], edi
mov bl, 8
mov byte [esp + 0x4c0], bl
jb 0x507fc3
mov edx, dword [esp + 0x58]
push edx
call fcn.00594e98
add esp, 4
mov esi, 0xf
push 0x62a4a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebp
mov byte [esp + 0x5c], 0
call fcn.0040bf50
push 0x5f3b14
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c4], 9
call fcn.0040bf50
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.004fb430
add esp, 0xc
cmp dword [esp + 0x48], edi
jb 0x50802e
mov eax, dword [esp + 0x34]
push eax
call fcn.00594e98
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 0x508055
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00594e98
add esp, 4
push 0x62a4a0
lea ecx, [esp + 0x18]
call fcn.0040bf50
push 0x5f3b10
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c4], 0xb
call fcn.0040bf50
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.004fb430
add esp, 0xc
cmp dword [esp + 0x48], edi
jb 0x5080ae
mov edx, dword [esp + 0x34]
push edx
call fcn.00594e98
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 0x5080d5
mov eax, dword [esp + 0x18]
push eax
call fcn.00594e98
add esp, 4
push 0x62a4a0
lea ecx, [esp + 0x18]
call fcn.0040bf50
push 0x5f32a4
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c4], 0xd
call fcn.0040bf50
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.004fb430
add esp, 0xc
cmp dword [esp + 0x48], edi
jb 0x50812e
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00594e98
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 0x508155
mov edx, dword [esp + 0x18]
push edx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x1a4], edi
mov eax, dword [esp + 0x190]
jae 0x50816c
lea eax, [esp + 0x190]
push eax
push 0x5f3230
lea eax, [esp + 0xf8]
push 0x5f3b04
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xf4]
call fcn.00409610
cmp dword [eax + 0x18], edi
mov byte [esp + 0x4c0], 0xf
jb 0x5081bc
mov eax, dword [eax + 4]
jmp 0x5081bf
add eax, 4
cmp dword [esp + 0x188], edi
mov ecx, dword [esp + 0x174]
jae 0x5081d6
lea ecx, [esp + 0x174]
push eax
push ecx
call fcn.00507b10
add esp, 8
cmp dword [esp + 0x2c], edi
jb 0x5081f3
mov edx, dword [esp + 0x18]
push edx
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x1a4], edi
jb 0x508233
mov eax, dword [esp + 0x190]
push eax
call fcn.00594e98
add esp, 4
jmp 0x508233
cmp dword [esp + 0x188], edi
mov eax, dword [esp + 0x174]
jae 0x508225
lea eax, [esp + 0x174]
push 0x5f3b04
push eax
call fcn.00507b10
add esp, 8
lea ecx, [esp + 0xbc]
mov byte [esp + 0x4c0], 2
call fcn.00409f20
lea ecx, [esp + 0xbc]
mov esi, vtable.std::ios_base.0
push ecx
mov dword [esp + 0xc0], esi
call fcn.005cccbe
add esp, 4
lea ecx, [esp + 0x13c]
mov byte [esp + 0x4c0], 0
call fcn.00409f20
lea edx, [esp + 0x13c]
push edx
mov dword [esp + 0x140], esi
call fcn.005cccbe
add esp, 4
cmp dword [esp + 0x188], edi
jb 0x5082a7
mov eax, dword [esp + 0x174]
push eax
call fcn.00594e98
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.005b0968
add esp, 0x4b0
ret 4