Function at 0x10034b6
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [0x1008018]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
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 edi, edi
push edi
push edi
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, edi
je 0x1003544
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 0x1003550
mov dword [ebp - 0x6d8], edi
mov dword [ebp - 0x6d4], edi
mov ecx, dword [ebp - 0x6e0]
call fcn.010015b5
mov edi, eax
test edi, edi
mov eax, dword [ebx + 0x268]
mov dword [ebp - 0x6e8], eax
mov eax, dword [ebx + 0x264]
mov dword [ebp - 0x6d0], edi
mov dword [ebp - 0x6e4], eax
je 0x10038de
push 0xffffffffffffffff
push 0
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 0x10035ad
mov ecx, dword [ebp - 0x6fc]
mov ax, word [ecx + eax*2]
jmp 0x10035b2
mov eax, 0xffff
cmp ax, 0x5c
je 0x10035de
push 0xffffffffffffffff
push 0x10012f8
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__]
jmp 0x1003879
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.01002fef
test al, al
je 0x10038d6
mov eax, dword [esi]
xor edi, edi
push edi
push 0x5633
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.01002fd7
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 0x1003674
mov dword [ebp - 0x6dc], 3
jmp 0x100368a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [eax]
push edi
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 0x10038ce
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 edi
push dword [ebp - 0x6e0]
mov edi, dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::Initialize_class_PATH_const___unsigned_char_]
lea ecx, [ebp - 0x244]
call edi
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 ebx, eax
test ebx, ebx
jne 0x100372c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4d3
jne 0x100385f
mov ecx, dword [ebp - 0x6d0]
mov eax, dword [ecx]
jmp 0x1003892
push dword [ebp - 0x2c]
push dword [ebx + 0x220]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1003778
push 0
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x6c4]
call edi
lea eax, [ebp - 0x6c4]
push eax
mov ecx, ebx
call dword [sym.imp.ulib.dll_public:_class_FSN_DIRECTORY____thiscall_FSN_DIRECTORY::CreateDirectoryPath_class_PATH_const__const]
mov edi, eax
test edi, edi
jne 0x100377a
push 4
push eax
push 0x5615
mov ecx, esi
call fcn.01002dd1
jmp 0x100377a
mov edi, ebx
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.01002fef
test al, al
je 0x1003841
cmp ebx, edi
je 0x1003857
push 0
lea eax, [edi + 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 0x10037f4
push 4
push 0
push 0x560f
mov ecx, esi
call fcn.01002dd1
mov eax, dword [ebx + 0x224]
mov dword [ebp - 0x6ec], eax
jmp 0x1003839
mov ecx, edi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_DIRECTORY::DeleteDirectory_void_]
test edi, edi
je 0x1003816
mov eax, dword [edi]
push 1
mov ecx, edi
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 edi, eax
mov eax, dword [ebp - 0x6ec]
cmp dword [ebp - 0x268], eax
ja 0x1003802
cmp ebx, edi
je 0x1003857
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
test edi, edi
je 0x100385f
mov eax, dword [edi]
mov ecx, edi
jmp 0x100385b
mov eax, dword [ebx]
mov ecx, ebx
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
jne 0x10035f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4d3
jne 0x10038d6
mov eax, dword [edi]
mov ecx, edi
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 0x1003914
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
pop ebx
call fcn.010060d7
leave
ret 8