Function at 0x404430
Capabilities:
Copy file
Enumerate files on windows
Set file attributes

Disassembly:
sub esp, 0x558
mov eax, dword [0x41c0f8]
push esi
mov esi, dword [esp + 0x560]
test esi, esi
mov dword [esp + 0x558], eax
push edi
je 0x4047a7
mov edi, dword [esp + 0x568]
test edi, edi
je 0x4047a7
push edi
push esi
call fcn.0040fdf9
add esp, 8
test eax, eax
jne 0x40448a
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x554]
call fcn.0040f5ac
add esp, 0x558
ret
lea edx, [esp + 0x458]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404495
lea edx, [esp + 0x354]
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4044b0
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x458]
mov byte [esp + eax + 0x250], cl
inc eax
test cl, cl
jne 0x4044c0
xor eax, eax
jmp 0x4044e0
mov cl, byte [esp + eax + 0x354]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x4044e0
lea eax, [esp + 0x250]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404500
sub eax, edx
je 0x4047a7
mov al, byte [esp + eax + 0x24f]
cmp al, 0x5c
mov si, word [0x418694]
je 0x40455f
cmp al, 0x2f
je 0x40455f
lea edi, [esp + 0x458]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404530
mov word [edi], si
lea edi, [esp + 0x250]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404543
mov ax, word [0x418698]
mov cl, byte [0x41869a]
mov word [edi], ax
mov byte [edi + 2], cl
jmp 0x404579
lea edi, [esp + 0x250]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404567
mov dx, word [0x4186c4]
mov word [edi], dx
lea eax, [esp + 0x354]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404583
sub eax, edx
mov al, byte [esp + eax + 0x353]
cmp al, 0x5c
je 0x4045ae
cmp al, 0x2f
je 0x4045ae
lea edi, [esp + 0x354]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4045a3
mov word [edi], si
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
je 0x4047a7
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00403b20
mov ebx, dword [esp + 0x574]
add esp, 4
test eax, eax
jne 0x4045fa
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.00403ec0
add esp, 8
lea ecx, [esp + 0x114]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x404773
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x404620
mov eax, dword [esp + 0x118]
shr eax, 4
and eax, 1
je 0x40465c
cmp byte [esp + 0x144], 0x2e
jne 0x40465c
mov cl, byte [esp + 0x145]
test cl, cl
je 0x404757
cmp cl, 0x2e
jne 0x40465c
mov cl, byte [esp + 0x146]
test cl, cl
je 0x404757
test eax, eax
jne 0x40473e
jmp 0x404670
mov cl, byte [esp + eax + 0x460]
mov byte [esp + eax + 0x258], cl
inc eax
test cl, cl
jne 0x404670
xor eax, eax
jmp 0x404690
mov cl, byte [esp + eax + 0x35c]
mov byte [esp + eax + 0x14], cl
inc eax
test cl, cl
jne 0x404690
lea eax, [esp + 0x144]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4046b0
lea edi, [esp + 0x258]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4046c1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x144]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4046e2
lea edi, [esp + 0x14]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4046f2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x14]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040fc6c
add esp, 8
cmp eax, 0xffffffff
jne 0x40473e
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test bl, bl
je 0x404799
push 7
lea eax, [esp + 0x18]
push eax
call ebp
test bl, bl
jne 0x404757
lea edx, [esp + 0x144]
push str.Everyone
push edx
call fcn.00404200
add esp, 8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404620
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x554]
call fcn.0040f5ac
add esp, 0x558
ret
push 0x80
lea ecx, [esp + 0x18]
push ecx
call ebp
jmp 0x404742
mov ecx, dword [esp + 0x55c]
pop edi
xor eax, eax
pop esi
call fcn.0040f5ac
add esp, 0x558
ret