Function at 0x1005cce
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ulib.dll_public:_void___thiscall_DSTRING::constructor_void_]
mov esi, ecx
lea ecx, [ebp - 0x704]
mov dword [ebp - 0x6e0], eax
call edi
lea ecx, [ebp - 0x71c]
call edi
mov edi, dword [sym.imp.ulib.dll_public:_void___thiscall_PATH::constructor_void_]
lea ecx, [ebp - 0x244]
call edi
lea ecx, [ebp - 0x6c4]
call edi
lea ecx, [ebp - 0x484]
call edi
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x6e0]
call dword [sym.imp.ulib.dll_public:_static_class_FSN_FILE____stdcall_SYSTEM::QueryFile_class_PATH_const___unsigned_char__unsigned_char__]
cmp eax, ebx
je 0x1005d5b
mov ecx, dword [eax + 0x268]
mov edx, dword [eax + 0x264]
mov dword [ebp - 0x6d8], ecx
mov dword [ebp - 0x6d4], edx
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
jmp 0x1005d67
mov dword [ebp - 0x6d8], ebx
mov dword [ebp - 0x6d4], ebx
mov ecx, dword [ebp - 0x6e0]
call fcn.0100155f
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x268]
mov eax, dword [eax + 0x264]
mov dword [ebp - 0x6d0], edi
mov dword [ebp - 0x6e8], ecx
mov dword [ebp - 0x6e4], eax
cmp edi, ebx
je 0x1006102
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [ebp - 0x704]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_WSTRING::Initialize_class_WSTRING_const___unsigned_long_int__unsigned_long_int_]
mov ecx, dword [ebp - 0x6f8]
lea eax, [ecx - 1]
cmp eax, ecx
jae 0x1005dc6
mov ecx, dword [ebp - 0x6fc]
movzx eax, word [ecx + eax*2]
jmp 0x1005dcb
mov eax, 0xffff
cmp ax, 0x5c
je 0x1005df7
push 0xffffffffffffffff
push 0x100246c
lea ecx, [ebp - 0x71c]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_WSTRING::Initialize_char_const___unsigned_long_int_]
lea eax, [ebp - 0x71c]
push eax
lea ecx, [ebp - 0x704]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_WSTRING::Strcat_class_WSTRING_const__]
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x704]
push eax
call dword [sym.imp.ifsutil.dll_public:_static_unsigned_char___stdcall_IFS_SYSTEM::QueryFreeDiskSpace_class_WSTRING_const___class_BIG_INT__]
test al, al
jne 0x1005e2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4d3
jne 0x10060fa
mov eax, dword [edi]
mov ecx, edi
jmp 0x1005f59
xor ebx, ebx
push dword [ebp - 0x6e4]
mov eax, dword [ebp - 0x6d8]
add dword [ebp - 0x6cc], eax
push dword [ebp - 0x6e8]
mov eax, dword [ebp - 0x6d4]
adc dword [ebp - 0x6c8], eax
push dword [ebp - 0x6c8]
push dword [ebp - 0x6cc]
call fcn.01005bd0
test al, al
je 0x10060fa
mov eax, dword [esi]
push ebx
push 0x5633
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.010012d2
mov ecx, dword [esi + 0xb4]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_KEYBOARD::DisableLineMode_void_]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test al, al
je 0x1005ea6
mov dword [ebp - 0x6dc], 3
jmp 0x1005ebc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [eax]
push ebx
lea ecx, [ebp - 0x6dc]
push ecx
mov ecx, eax
call dword [edx + 0x14]
mov ecx, dword [esi + 0xb4]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_KEYBOARD::EnableLineMode_void_]
cmp word [ebp - 0x6dc], 3
je 0x10060f2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push dword [ebp - 0x6dc]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [eax]
push 0xd
mov ecx, eax
call dword [edx + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [eax]
push 0xa
mov ecx, eax
call dword [edx + 0x28]
push ebx
push dword [ebp - 0x6e0]
mov ebx, dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::Initialize_class_PATH_const___unsigned_char_]
lea ecx, [ebp - 0x244]
call ebx
lea ecx, [ebp - 0x244]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::TruncateBase_void_]
push 1
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.ulib.dll_public:_static_class_FSN_DIRECTORY____stdcall_SYSTEM::QueryDirectory_class_PATH_const___unsigned_char_]
mov edi, eax
test edi, edi
jne 0x1005f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4d3
jne 0x10060cb
mov ecx, dword [ebp - 0x6d0]
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_PATH::destructor_void_]
lea ecx, [ebp - 0x484]
call esi
lea ecx, [ebp - 0x6c4]
call esi
lea ecx, [ebp - 0x244]
call esi
mov esi, dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_DSTRING::destructor_void_]
lea ecx, [ebp - 0x71c]
call esi
lea ecx, [ebp - 0x704]
call esi
xor al, al
jmp 0x1006138
push dword [ebp - 0x2c]
push dword [edi + 0x220]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1005fe4
push 0
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x6c4]
call ebx
lea eax, [ebp - 0x6c4]
push eax
mov ecx, edi
call dword [sym.imp.ulib.dll_public:_class_FSN_DIRECTORY____thiscall_FSN_DIRECTORY::CreateDirectoryPath_class_PATH_const__const]
mov ebx, eax
test ebx, ebx
jne 0x1005fe6
push 4
push eax
push 0x5615
mov ecx, esi
call fcn.01001cb2
jmp 0x1005fe6
mov ebx, edi
lea eax, [ebp - 0x6cc]
push eax
push dword [ebp - 0x6d0]
call dword [sym.imp.ifsutil.dll_public:_static_unsigned_char___stdcall_IFS_SYSTEM::QueryFreeDiskSpace_class_WSTRING_const___class_BIG_INT__]
push dword [ebp - 0x6e4]
mov eax, dword [ebp - 0x6d8]
add dword [ebp - 0x6cc], eax
push dword [ebp - 0x6e8]
mov eax, dword [ebp - 0x6d4]
adc dword [ebp - 0x6c8], eax
push dword [ebp - 0x6c8]
push dword [ebp - 0x6cc]
call fcn.01005bd0
test al, al
je 0x10060ad
cmp edi, ebx
je 0x10060c3
push 0
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x484]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::Initialize_class_PATH_const___unsigned_char_]
test al, al
jne 0x1006060
push 4
push 0
push 0x560f
mov ecx, esi
call fcn.01001cb2
mov eax, dword [edi + 0x224]
mov dword [ebp - 0x6ec], eax
jmp 0x10060a5
mov ecx, ebx
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_DIRECTORY::DeleteDirectory_void_]
test ebx, ebx
je 0x1006082
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
lea ecx, [ebp - 0x484]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::TruncateBase_void_]
push 0
lea eax, [ebp - 0x484]
push eax
call dword [sym.imp.ulib.dll_public:_static_class_FSN_DIRECTORY____stdcall_SYSTEM::QueryDirectory_class_PATH_const___unsigned_char_]
mov ebx, eax
mov eax, dword [ebp - 0x6ec]
cmp dword [ebp - 0x268], eax
ja 0x100606e
cmp edi, ebx
je 0x10060c3
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
test ebx, ebx
je 0x10060cb
mov eax, dword [ebx]
mov ecx, ebx
jmp 0x10060c7
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x704]
push eax
call dword [sym.imp.ifsutil.dll_public:_static_unsigned_char___stdcall_IFS_SYSTEM::QueryFreeDiskSpace_class_WSTRING_const___class_BIG_INT__]
mov edi, dword [ebp - 0x6d0]
test al, al
je 0x1005e0f
jmp 0x1005e29
push 2
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov esi, dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_PATH::destructor_void_]
lea ecx, [ebp - 0x484]
call esi
lea ecx, [ebp - 0x6c4]
call esi
lea ecx, [ebp - 0x244]
call esi
mov esi, dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_DSTRING::destructor_void_]
lea ecx, [ebp - 0x71c]
call esi
lea ecx, [ebp - 0x704]
call esi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010012c0
leave
ret 8