Function at 0x1001582
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x930
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
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 - 0x924], ebx
mov dword [ebp - 0x920], ebx
mov dword [ebp - 0x91c], ebx
call edi
lea ecx, [ebp - 0x244]
call edi
mov dword [ebp - 0x928], ebx
mov dword [ebp - 0x92c], ebx
mov edi, 0x5613
cmp byte [esi + 0x98], bl
jne 0x10051c3
mov ecx, esi
call fcn.010012d2
lea eax, [ebp - 0x918]
push eax
lea eax, [ebp - 0x92c]
push eax
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x924]
push eax
push dword [esi + 0x88]
mov ecx, esi
call fcn.010034ed
cmp byte [esi + 0x98], bl
jne 0x10051ee
cmp byte [esi + 0x9a], bl
jne 0x100521d
lea eax, [esi + 0xb8]
push eax
lea edi, [esi + 0xc0]
push edi
push dword [ebp - 0x918]
mov ecx, esi
push dword [esi + 0x8c]
call fcn.010037a2
cmp byte [esi + 0xa4], bl
jne 0x10016d2
push 1
push dword [edi]
call dword [sym.imp.ulib.dll_public:_static_class_FSN_DIRECTORY____stdcall_SYSTEM::QueryDirectory_class_PATH_const___unsigned_char_]
mov dword [ebp - 0x91c], eax
cmp eax, ebx
je 0x10052c8
mov eax, dword [edi]
push dword [eax + 0x218]
add eax, 0x210
mov eax, dword [ebp - 0x91c]
push dword [eax + 0x220]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10052dc
mov eax, dword [ebp - 0x91c]
mov dword [ebp - 0x920], eax
cmp eax, ebx
je 0x1005317
mov ecx, dword [edi]
call fcn.0100155f
mov edi, eax
cmp edi, ebx
je 0x10016d2
push edi
call dword [sym.imp.ulib.dll_public:_static_enum_DRIVE_TYPE___stdcall_SYSTEM::QueryDriveType_class_WSTRING_const__]
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0xae], al
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
cmp byte [esi + 0xaa], bl
jne 0x100532b
mov edi, dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::Initialize_class_PATH_const___unsigned_char_]
push ebx
push dword [esi + 0xc0]
lea ecx, [ebp - 0x244]
call edi
cmp byte [esi + 0xa6], bl
jne 0x1005409
mov eax, dword [esi + 0x88]
mov edi, dword [ebp - 0x924]
mov ecx, dword [eax + 0x218]
mov eax, dword [edi + 0x220]
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10039d6
cmp dx, bx
je 0x100174a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10039d6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x1001720
xor eax, eax
cmp eax, ebx
sete al
movzx eax, al
push eax
push dword [ebp - 0x92c]
lea eax, [ebp - 0x244]
push dword [ebp - 0x928]
mov ecx, esi
push eax
push edi
call fcn.010012e6
lea edi, [esi + 0xc0]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x1001782
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], ebx
cmp dword [esi + 0xb0], ebx
jne 0x1001798
cmp byte [esi + 0xbc], bl
jne 0x10054d4
mov ecx, dword [ebp - 0x924]
mov eax, dword [ecx]
xor edi, edi
inc edi
push edi
call dword [eax]
mov ecx, dword [ebp - 0x91c]
mov esi, dword [ebp - 0x920]
cmp ecx, esi
jne 0x10055f2
cmp esi, ebx
je 0x10017c5
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 0x928]
cmp ecx, ebx
je 0x10017d4
mov eax, dword [ecx]
push edi
call dword [eax]
mov ecx, dword [ebp - 0x92c]
cmp ecx, ebx
je 0x10017e3
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
xor ecx, ebp
mov al, 1
pop ebx
call fcn.010012c0
leave
ret
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x100174c
push dword [esi + 0x8c]
mov ecx, esi
push dword [esi + 0x88]
call fcn.0100614e
test eax, eax
je 0x10015e3
push 4
push ebx
push edi
mov ecx, esi
call fcn.01001cb2
jmp 0x10015e3
push dword [esi + 0x8c]
mov eax, dword [ebp - 0x924]
add eax, 8
push eax
mov ecx, esi
call fcn.0100614e
test eax, eax
je 0x100161f
push 4
push ebx
push edi
mov ecx, esi
call fcn.01001cb2
jmp 0x100161f
mov eax, dword [esi]
push ebx
push 0x562d
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 0x100525b
mov dword [ebp - 0x930], 0x20
jmp 0x1005271
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 0x100528f
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]
jmp 0x100162b
push 4
push ebx
push 0x5615
mov ecx, esi
call fcn.01001cb2
jmp 0x100166c
push ebx
push dword [edi]
lea ecx, [ebp - 0x244]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::Initialize_class_PATH_const___unsigned_char_]
cmp byte [esi + 0xbd], bl
jne 0x10052ff
lea ecx, [ebp - 0x244]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::TruncateBase_void_]
mov ecx, dword [ebp - 0x91c]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.ulib.dll_public:_class_FSN_DIRECTORY____thiscall_FSN_DIRECTORY::CreateDirectoryPath_class_PATH_const__const]
jmp 0x100169b
push 4
push ebx
push 0x5612
mov ecx, esi
call fcn.01001cb2
jmp 0x10016a9
lea eax, [ebp - 0x918]
push eax
call fcn.01005bf6
test al, al
jne 0x100534a
push 4
push ebx
push 0x560f
mov ecx, esi
call fcn.01001cb2
push 0x1005688
push dword [ebp - 0x918]
call fcn.01005c40
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x100537b
push dword [ebp - 0x918]
call edi
push 4
push ebx
push 0x5618
mov ecx, esi
call fcn.01001cb2
push 0x1005660
push dword [ebp - 0x918]
call fcn.01005c40
test al, al
jne 0x10053a6
push dword [ebp - 0x918]
call edi
push 4
push ebx
push 0x5618
mov ecx, esi
call fcn.01001cb2
push 0x1005638
push dword [ebp - 0x918]
call fcn.01005c40
test al, al
jne 0x10053d1
push dword [ebp - 0x918]
call edi
push 4
push ebx
push 0x5618
mov ecx, esi
call fcn.01001cb2
push 0x1005604
push dword [ebp - 0x918]
call fcn.01005c40
test al, al
jne 0x10053fc
push dword [ebp - 0x918]
call edi
push 4
push ebx
push 0x5618
mov ecx, esi
call fcn.01001cb2
push dword [ebp - 0x918]
call edi
jmp 0x10016de
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 edi, dword [ebp - 0x924]
mov dword [ebp - 0x918], eax
push ebx
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::Initialize_class_PATH_const___unsigned_char_]
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x218]
mov eax, dword [edi + 0x220]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1005488
cmp dx, bx
je 0x1005484
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1005488
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x1005462
xor eax, eax
jmp 0x100548d
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [ebp - 0x918]
cmp eax, ebx
sete al
movzx eax, al
push eax
push dword [ebp - 0x92c]
lea eax, [ebp - 0x244]
push dword [ebp - 0x928]
mov ecx, esi
push eax
push edi
call fcn.010066ff
cmp edi, ebx
je 0x10054c3
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [ebp - 0x6c4]
call dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_PATH::destructor_void_]
jmp 0x1001770
cmp byte [esi + 0xa4], bl
jne 0x1001798
mov edi, dword [ebp - 0x920]
cmp dword [ebp - 0x91c], edi
je 0x100557e
push ebx
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 0x1005516
push 4
push ebx
push 0x560f
mov ecx, esi
call fcn.01001cb2
mov eax, dword [ebp - 0x91c]
mov eax, dword [eax + 0x224]
mov dword [ebp - 0x918], eax
cmp dword [ebp - 0x268], eax
ja 0x1005538
jmp 0x100557e
mov edi, dword [ebp - 0x920]
mov ecx, edi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_DIRECTORY::DeleteDirectory_void_]
cmp edi, ebx
je 0x100554c
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 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 - 0x920], eax
cmp eax, ebx
je 0x100557e
mov eax, dword [ebp - 0x918]
cmp dword [ebp - 0x268], eax
ja 0x1005532
mov eax, dword [ebp - 0x924]
push ebx
add eax, 8
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::Initialize_class_PATH_const___unsigned_char_]
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__]
mov dword [ebp - 0x918], eax
cmp eax, 0xffffffff
jne 0x10055e1
mov eax, dword [esi]
push edi
push 0x100582c
push 1
push 0x5622
push esi
call dword [eax + 8]
add esp, 0x14
push dword [ebp - 0x918]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1001798
cmp ecx, ebx
je 0x10017ba
mov eax, dword [ecx]
push edi
call dword [eax]
jmp 0x10017ba