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

Disassembly:
sub esp, 0x544
push ebx
push ebp
mov ebp, dword [esp + 0x550]
push esi
push edi
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x580174
mov eax, dword [0x5e7eec]
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 0x5801a0
sub eax, esi
test ecx, ecx
mov byte [eax + ebp - 3], dl
jne 0x5804c7
test byte [esp + 0x14], 0x10
je 0x5801cb
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
jmp 0x58049b
lea edx, [esp + 0x354]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5801d6
lea eax, [esp + 0x40]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5801e6
lea edi, [esp + 0x354]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5801f7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x568]
and ecx, 3
mov ebx, eax
and ebx, 1
rep movsb byte es:[edi], byte [esi]
jne 0x5803cd
test al, 2
je 0x5803cd
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x580230
mov ecx, dword [esp + 0x55c]
sub eax, edx
cmp eax, ecx
je 0x5802fd
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 0x580253
mov ecx, dword [esp + 0x55c]
lea edi, [esp + 0x154]
mov byte [esp + ecx + 0x154], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x580274
mov edx, dword [str.backup_]
mov eax, dword [0x5f0da8]
lea ecx, [esp + 0x154]
push ecx
mov dword [edi], edx
push ebp
mov dword [edi + 4], eax
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x5802fd
mov eax, ebp
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x5802a3
mov edx, dword [esp + 0x55c]
lea edi, [esp + 0x154]
mov byte [esp + edx + 0x154], cl
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5802c3
mov eax, dword [str.backups_]
mov ecx, dword [0x5f0d9c]
mov dl, byte [0x5f0da0]
mov dword [edi], eax
lea eax, [esp + 0x154]
push eax
mov dword [edi + 4], ecx
push ebp
mov byte [edi + 8], dl
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x5803cd
lea ecx, [esp + 0x40]
push 0x5f0d8c
push ecx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x580491
lea edx, [esp + 0x40]
push str.uninstall.exe
push edx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x580491
lea eax, [esp + 0x40]
push str.ircintro.chm
push eax
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x580491
lea ecx, [esp + 0x40]
push str.ircintro.hlp
push ecx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x580491
lea edx, [esp + 0x40]
push str.mirc.chm
push edx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x580491
lea eax, [esp + 0x40]
push str.mirc.hlp
push eax
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x580491
lea ecx, [esp + 0x40]
push str.readme.txt
push ecx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x580491
lea edx, [esp + 0x40]
push str.versions.txt
push edx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x580491
mov eax, dword [esp + 0x55c]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x564]
lea ecx, [eax + ebp]
push ecx
push edx
lea eax, [esp + 0x160]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
test ebx, ebx
je 0x580459
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x358]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x580491
push eax
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x5804ba
lea edx, [esp + 0x354]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x580491
mov eax, dword [esp + 0x564]
mov dword [eax], 1
jmp 0x5804c7
test byte [esp + 0x568], 2
je 0x580491
push 0
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x5804ab
lea edx, [esp + 0x354]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x5804ba
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5801b5
jmp 0x5804c7
mov ecx, dword [esp + 0x564]
mov dword [ecx], 1
jmp 0x5804c7
mov edx, dword [esp + 0x564]
mov dword [edx], 1
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x5804d7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x564]
cmp dword [eax], 0
jne 0x5806b8
mov edi, ebp
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5804f0
mov ecx, dword [0x5e7eec]
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 0x580520
sub eax, esi
test edx, edx
mov byte [eax + ebp - 3], cl
jne 0x5806a8
mov ebx, dword [esp + 0x55c]
lea esp, [esp]
test byte [esp + 0x14], 0x10
je 0x580690
cmp byte [esp + 0x40], 0x2e
je 0x580690
lea eax, [esp + 0x40]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x580560
mov edi, ebp
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x580570
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.00426aa0
mov eax, dword [esp + 0x56c]
mov esi, eax
add esp, 4
and esi, 1
jne 0x5805e6
test al, 2
je 0x5805e6
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5805a6
sub eax, edx
cmp eax, ebx
jne 0x5805e6
lea eax, [esp + 0x40]
push str.defaults
push eax
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x5805e6
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x580540
jmp 0x5806ac
mov edi, dword [esp + 0x560]
lea edx, [ebx + ebp]
push edx
push edi
lea eax, [esp + 0x15c]
push 0x5e6a64
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x568]
mov eax, dword [esp + 0x564]
push edx
push eax
push edi
push ebx
push ebp
call fcn.00580160
push 0x5c
push ebp
call fcn.005ccc30
add esp, 0x1c
test eax, eax
je 0x580684
test esi, esi
mov byte [eax], 0
je 0x580660
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x580671
mov ecx, dword [esp + 0x564]
mov dword [ecx], 1
jmp 0x580671
test byte [esp + 0x568], 2
je 0x580671
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x5c
push ebp
call fcn.005ccc30
add esp, 8
test eax, eax
je 0x580684
mov byte [eax + 1], 0
mov edx, dword [esp + 0x564]
cmp dword [edx], 0
jne 0x5806a8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x580540
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x5806b8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x544
ret