Function at 0x10059ce
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x930
mov eax, dword [0x1008018]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ulib.dll_public:_void___thiscall_PATH::constructor_void_]
mov esi, ecx
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], eax
mov dword [ebp - 0x920], ebx
mov dword [ebp - 0x91c], ebx
mov dword [ebp - 0x924], ebx
call edi
lea ecx, [ebp - 0x244]
call edi
cmp byte [esi + 0x98], bl
mov dword [ebp - 0x928], ebx
mov dword [ebp - 0x92c], ebx
mov edi, 0x5613
je 0x1005a4b
push dword [esi + 0x8c]
mov ecx, esi
push dword [esi + 0x88]
call fcn.01003cd7
test eax, eax
je 0x1005a4b
push 4
push ebx
push edi
mov ecx, esi
call fcn.01002dd1
mov ecx, esi
call fcn.01002fd7
lea eax, [ebp - 0x918]
push eax
lea eax, [ebp - 0x92c]
push eax
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x920]
push eax
push dword [esi + 0x88]
mov ecx, esi
call fcn.01003928
cmp byte [esi + 0x98], bl
je 0x1005aa9
push dword [esi + 0x8c]
mov eax, dword [ebp - 0x920]
add eax, 8
push eax
mov ecx, esi
call fcn.01003cd7
test eax, eax
je 0x1005aa9
push 4
push ebx
push edi
mov ecx, esi
call fcn.01002dd1
cmp byte [esi + 0x9a], bl
je 0x1005b5b
mov eax, dword [esi]
push ebx
push 0x562d
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 0x1005af3
mov dword [ebp - 0x930], 0x20
jmp 0x1005b09
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [eax]
push ebx
lea ecx, [ebp - 0x930]
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 - 0x930], 3
jne 0x1005b27
push 2
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push dword [ebp - 0x930]
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]
lea ecx, [esi + 0xb8]
push ecx
lea eax, [esi + 0xc0]
push eax
push dword [ebp - 0x918]
mov ecx, esi
push dword [esi + 0x8c]
call fcn.01004b8c
cmp byte [esi + 0xa4], bl
mov edi, dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::Initialize_class_PATH_const___unsigned_char_]
jne 0x1005c6a
push 1
push dword [esi + 0xc0]
call dword [sym.imp.ulib.dll_public:_static_class_FSN_DIRECTORY____stdcall_SYSTEM::QueryDirectory_class_PATH_const___unsigned_char_]
cmp eax, ebx
mov dword [ebp - 0x924], eax
jne 0x1005bb5
push 4
push ebx
push 0x5615
mov ecx, esi
call fcn.01002dd1
mov eax, dword [esi + 0xc0]
push dword [eax + 0x218]
add eax, 0x210
mov eax, dword [ebp - 0x924]
push dword [eax + 0x220]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1005be6
mov eax, dword [ebp - 0x924]
jmp 0x1005c1c
push ebx
push dword [esi + 0xc0]
lea ecx, [ebp - 0x244]
call edi
cmp byte [esi + 0xbd], bl
jne 0x1005c09
lea ecx, [ebp - 0x244]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::TruncateBase_void_]
mov ecx, dword [ebp - 0x924]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.ulib.dll_public:_class_FSN_DIRECTORY____thiscall_FSN_DIRECTORY::CreateDirectoryPath_class_PATH_const__const]
cmp eax, ebx
mov dword [ebp - 0x91c], eax
jne 0x1005c35
push 4
push ebx
push 0x5612
mov ecx, esi
call fcn.01002dd1
mov ecx, dword [esi + 0xc0]
call fcn.010015b5
cmp eax, ebx
mov dword [ebp - 0x918], eax
je 0x1005c6a
push eax
call dword [sym.imp.ulib.dll_public:_static_enum_DRIVE_TYPE___stdcall_SYSTEM::QueryDriveType_class_WSTRING_const__]
mov ecx, dword [ebp - 0x918]
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0xac], al
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [esi + 0xaa], bl
je 0x1005cd1
lea eax, [ebp - 0x918]
push eax
call fcn.010031d8
test al, al
jne 0x1005c91
push 4
push ebx
push 0x560f
mov ecx, esi
call fcn.01002dd1
push 0x1001498
push dword [ebp - 0x918]
call fcn.01003222
push 0x1001470
push dword [ebp - 0x918]
call fcn.01003222
push 0x1001448
push dword [ebp - 0x918]
call fcn.01003222
push 0x1001414
push dword [ebp - 0x918]
call fcn.01003222
push ebx
push dword [esi + 0xc0]
lea ecx, [ebp - 0x244]
call edi
cmp byte [esi + 0xa6], bl
jne 0x1005d39
mov eax, dword [esi + 0x88]
push dword [eax + 0x218]
add eax, 0x210
mov eax, dword [ebp - 0x920]
push dword [eax + 0x220]
call dword [sym.imp.msvcrt.dll_wcscmp]
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov ecx, esi
push eax
push dword [ebp - 0x92c]
lea eax, [ebp - 0x244]
push dword [ebp - 0x928]
push eax
push dword [ebp - 0x920]
call fcn.01004f25
jmp 0x1005de4
lea ecx, [ebp - 0x6c4]
call dword [sym.imp.ulib.dll_public:_void___thiscall_PATH::constructor_void_]
push ebx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x6c4]
call edi
push ebx
lea eax, [ebp - 0x6c4]
push eax
call dword [sym.imp.ulib.dll_public:_static_class_FSN_DIRECTORY____stdcall_SYSTEM::QueryDirectory_class_PATH_const___unsigned_char_]
mov dword [ebp - 0x918], eax
mov eax, dword [ebp - 0x920]
push ebx
add eax, 8
push eax
lea ecx, [ebp - 0x244]
call edi
mov eax, dword [esi + 0x88]
push dword [eax + 0x218]
add eax, 0x210
mov eax, dword [ebp - 0x920]
push dword [eax + 0x220]
call dword [sym.imp.msvcrt.dll_wcscmp]
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov ecx, esi
push eax
push dword [ebp - 0x92c]
lea eax, [ebp - 0x244]
push dword [ebp - 0x928]
push eax
push dword [ebp - 0x918]
call fcn.0100544e
mov ecx, dword [ebp - 0x918]
cmp ecx, ebx
je 0x1005dd8
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x6c4]
call dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_PATH::destructor_void_]
mov ecx, dword [esi + 0xc0]
cmp ecx, ebx
je 0x1005df4
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0xb0], ebx
mov dword [esi + 0xc0], ebx
jne 0x1005f15
cmp byte [esi + 0xbc], bl
je 0x1005f15
cmp byte [esi + 0xa4], bl
jne 0x1005f15
mov eax, dword [ebp - 0x91c]
cmp dword [ebp - 0x924], eax
je 0x1005eaa
push ebx
add eax, 8
push eax
lea ecx, [ebp - 0x484]
call edi
test al, al
jne 0x1005e4c
push 4
push ebx
push 0x560f
mov ecx, esi
call fcn.01002dd1
mov eax, dword [ebp - 0x924]
mov eax, dword [eax + 0x224]
mov dword [ebp - 0x918], eax
jmp 0x1005ea2
mov ecx, dword [ebp - 0x91c]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_DIRECTORY::DeleteDirectory_void_]
mov ecx, dword [ebp - 0x91c]
cmp ecx, ebx
je 0x1005e7c
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x484]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::TruncateBase_void_]
push ebx
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 dword [ebp - 0x91c], eax
mov eax, dword [ebp - 0x918]
cmp dword [ebp - 0x268], eax
ja 0x1005e60
mov eax, dword [ebp - 0x920]
push ebx
add eax, 8
push eax
lea ecx, [ebp - 0x244]
call edi
mov edi, dword [ebp - 0x928]
push ebx
add edi, 0x18
push edi
lea ecx, [ebp - 0x244]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::AppendBase_class_WSTRING_const___unsigned_char_]
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.ulib.dll_void____stdcall_FindFirstFileW_class_PATH_const___struct__WIN32_FIND_DATAW__]
cmp eax, 0xffffffff
mov dword [ebp - 0x918], eax
jne 0x1005f09
mov eax, dword [esi]
push edi
push 0x10013c0
push 1
push 0x5622
push esi
call dword [eax + 8]
add esp, 0x14
push dword [ebp - 0x918]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x920]
mov eax, dword [ecx]
xor edi, edi
inc edi
push edi
call dword [eax]
mov ecx, dword [ebp - 0x924]
mov esi, dword [ebp - 0x91c]
cmp ecx, esi
je 0x1005f3c
cmp ecx, ebx
je 0x1005f3c
mov eax, dword [ecx]
push edi
call dword [eax]
cmp esi, ebx
je 0x1005f47
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 0x928]
cmp ecx, ebx
je 0x1005f56
mov eax, dword [ecx]
push edi
call dword [eax]
mov ecx, dword [ebp - 0x92c]
cmp ecx, ebx
je 0x1005f65
mov eax, dword [ecx]
push edi
call dword [eax]
mov esi, dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_PATH::destructor_void_]
lea ecx, [ebp - 0x244]
call esi
lea ecx, [ebp - 0x484]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, 1
pop ebx
call fcn.010060d7
leave
ret