Function at 0x58c2c0
Capabilities:
Copy file
Create directory
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
sub esp, 0x9ac
push ebx
push ebp
mov ebp, dword [esp + 0x9b8]
push esi
push edi
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x58c2d4
mov eax, dword [0x5f59c4]
lea ecx, [esp + 0x14]
push ecx
push ebp
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
mov eax, ebp
sete cl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x58c300
sub eax, esi
test ecx, ecx
mov byte [eax + ebp - 3], dl
jne 0x58c626
test byte [esp + 0x14], 0x10
je 0x58c32b
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
jmp 0x58c5fa
lea edx, [esp + 0x588]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x58c336
lea eax, [esp + 0x40]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58c346
lea edi, [esp + 0x588]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x58c357
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x9d0]
and ecx, 3
mov ebx, eax
and ebx, 1
rep movsb byte es:[edi], byte [esi]
jne 0x58c52d
test al, 2
je 0x58c52d
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58c390
mov ecx, dword [esp + 0x9c4]
sub eax, edx
cmp eax, ecx
je 0x58c45d
lea esi, [esp + 0x154]
mov eax, ebp
sub esi, ebp
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x58c3b3
mov ecx, dword [esp + 0x9c4]
lea edi, [esp + 0x154]
mov byte [esp + ecx + 0x154], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x58c3d4
mov edx, dword [str.backup_]
mov eax, dword [0x5ff09c]
lea ecx, [esp + 0x154]
push ecx
mov dword [edi], edx
push ebp
mov dword [edi + 4], eax
call fcn.005f1860
add esp, 8
test eax, eax
je 0x58c45d
mov eax, ebp
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x58c403
mov edx, dword [esp + 0x9c4]
lea edi, [esp + 0x154]
mov byte [esp + edx + 0x154], cl
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x58c423
mov eax, dword [str.backups_]
mov ecx, dword [0x5ff090]
mov dl, byte [0x5ff094]
mov dword [edi], eax
lea eax, [esp + 0x154]
push eax
mov dword [edi + 4], ecx
push ebp
mov byte [edi + 8], dl
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x58c52d
lea ecx, [esp + 0x40]
push 0x5ff080
push ecx
call fcn.005f1860
add esp, 8
test eax, eax
je 0x58c5f0
lea edx, [esp + 0x40]
push str.uninstall.exe
push edx
call fcn.005f1860
add esp, 8
test eax, eax
je 0x58c5f0
lea eax, [esp + 0x40]
push str.ircintro.chm
push eax
call fcn.005f1860
add esp, 8
test eax, eax
je 0x58c5f0
lea ecx, [esp + 0x40]
push str.ircintro.hlp
push ecx
call fcn.005f1860
add esp, 8
test eax, eax
je 0x58c5f0
lea edx, [esp + 0x40]
push str.mirc.chm
push edx
call fcn.005f1860
add esp, 8
test eax, eax
je 0x58c5f0
lea eax, [esp + 0x40]
push str.mirc.hlp
push eax
call fcn.005f1860
add esp, 8
test eax, eax
je 0x58c5f0
lea ecx, [esp + 0x40]
push str.readme.txt
push ecx
call fcn.005f1860
add esp, 8
test eax, eax
je 0x58c5f0
lea edx, [esp + 0x40]
push str.versions.txt
push edx
call fcn.005f1860
add esp, 8
test eax, eax
je 0x58c5f0
mov eax, dword [esp + 0x9c4]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x9cc]
lea ecx, [eax + ebp]
push ecx
push edx
lea eax, [esp + 0x160]
push str._s_s_s
push eax
call fcn.005d9929
add esp, 0x14
test ebx, ebx
je 0x58c5b8
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x58c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x58c5f0
push eax
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x590]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x58c619
lea edx, [esp + 0x588]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x58c5f0
mov eax, dword [esp + 0x9cc]
mov dword [eax], 1
jmp 0x58c626
test byte [esp + 0x9d0], 2
je 0x58c5f0
push 0
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x590]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x58c60a
lea edx, [esp + 0x588]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x58c619
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x58c315
jmp 0x58c626
mov ecx, dword [esp + 0x9cc]
mov dword [ecx], 1
jmp 0x58c626
mov edx, dword [esp + 0x9cc]
mov dword [edx], 1
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x58c636
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x9cc]
cmp dword [eax], 0
jne 0x58c817
mov edi, ebp
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x58c650
mov ecx, dword [0x5f59c4]
lea edx, [esp + 0x14]
push edx
push ebp
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor edx, edx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
mov eax, ebp
sete dl
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58c680
sub eax, esi
test edx, edx
mov byte [eax + ebp - 3], cl
jne 0x58c807
mov ebx, dword [esp + 0x9c4]
lea esp, [esp]
test byte [esp + 0x14], 0x10
je 0x58c7ef
cmp byte [esp + 0x40], 0x2e
je 0x58c7ef
lea eax, [esp + 0x40]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58c6c0
mov edi, ebp
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x58c6d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.004256e0
mov eax, dword [esp + 0x9d4]
mov esi, eax
add esp, 4
and esi, 1
jne 0x58c746
test al, 2
je 0x58c746
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58c706
sub eax, edx
cmp eax, ebx
jne 0x58c746
lea eax, [esp + 0x40]
push str.defaults
push eax
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x58c746
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x58c6a0
jmp 0x58c80b
mov edi, dword [esp + 0x9c8]
lea edx, [ebx + ebp]
push edx
push edi
lea eax, [esp + 0x15c]
push 0x5f4a5c
push eax
call fcn.005d9929
add esp, 0x10
push 0
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x9d0]
mov eax, dword [esp + 0x9cc]
push edx
push eax
push edi
push ebx
push ebp
call fcn.0058c2c0
push 0x5c
push ebp
call fcn.005da7f0
add esp, 0x1c
test eax, eax
je 0x58c7e3
test esi, esi
mov byte [eax], 0
je 0x58c7bf
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x58c7d0
mov ecx, dword [esp + 0x9cc]
mov dword [ecx], 1
jmp 0x58c7d0
test byte [esp + 0x9d0], 2
je 0x58c7d0
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x5c
push ebp
call fcn.005da7f0
add esp, 8
test eax, eax
je 0x58c7e3
mov byte [eax + 1], 0
mov edx, dword [esp + 0x9cc]
cmp dword [edx], 0
jne 0x58c807
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x58c6a0
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x58c817
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9ac
ret