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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x674], edi
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x680], ecx
call fcn.0041d598
add esp, 4
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.004238b0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.004238b0
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
lea eax, [ebp - 0x418]
push 0x435878
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x668]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x67c], eax
cmp eax, 0xffffffff
je 0x404dc1
jmp 0x404a92
mov edi, dword [ebp - 0x674]
mov ebx, dword [ebp - 0x670]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x63c]
push eax
push edi
lea ecx, [ebp - 0x418]
push 0x435890
push ecx
call esi
lea edx, [ebp - 0x63c]
push edx
push ebx
lea eax, [ebp - 0x210]
push 0x435890
push eax
call esi
add esp, 0x20
mov ecx, 0x431904
lea eax, [ebp - 0x63c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404af6
test dx, dx
je 0x404af2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404af6
add eax, 4
add ecx, 4
test dx, dx
jne 0x404ad0
xor esi, esi
jmp 0x404afb
sbb esi, esi
sbb esi, 0xffffffff
test esi, esi
je 0x404d9d
mov ecx, 0x435888
lea eax, [ebp - 0x63c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404b36
test dx, dx
je 0x404b32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404b36
add eax, 4
add ecx, 4
test dx, dx
jne 0x404b10
xor eax, eax
jmp 0x404b3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404d17
test byte [ebp - 0x668], 0x10
jne 0x404d17
mov esi, 1
xor edi, edi
cmp dword [0xc33124], esi
jne 0x404b79
lea ecx, [ebp - 0x63c]
push 0x43220c
push ecx
call fcn.0041be77
add esp, 8
test eax, eax
jne 0x404b79
mov edi, esi
cmp dword [0xc33128], esi
jne 0x404b9b
lea edx, [ebp - 0x63c]
push 0x4321e8
push edx
call fcn.0041be77
add esp, 8
test eax, eax
jne 0x404b9b
mov edi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea eax, [ebp - 0x210]
push eax
call ebx
push edi
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x678], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x80
lea eax, [ebp - 0x210]
push eax
call ebx
cmp edi, 1
jne 0x404bee
cmp esi, 0x50
je 0x404cb6
cmp dword [ebp - 0x678], 0
jne 0x404cad
push esi
lea ecx, [ebp - 0x63c]
push ecx
push 0x4358a0
push 0xc30a50
call dword [sym.imp.USER32.dll_wsprintfW]
push 0xc30a50
call fcn.00403790
lea edx, [ebp - 0x63c]
add esp, 0x14
push edx
call fcn.00415020
add esp, 4
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x80
lea edx, [ebp - 0x210]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 1
jne 0x404c75
cmp esi, 0x50
je 0x404cb6
test ebx, ebx
jne 0x404cad
mov eax, dword [0xc31250]
inc eax
push eax
mov dword [0xc31250], eax
push esi
lea eax, [ebp - 0x63c]
push eax
push 0x4358f0
push 0xc30a50
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0xc30a50
call fcn.00403790
add esp, 4
cmp edi, 1
jne 0x404d9d
lea ecx, [ebp - 0x63c]
push 0x43220c
push ecx
call fcn.0041be77
add esp, 8
test eax, eax
jne 0x404ce0
cmp esi, 0x50
jne 0x404ce0
push 0x435948
call fcn.00403790
add esp, 4
lea edx, [ebp - 0x63c]
push 0x4321e8
push edx
call fcn.0041be77
add esp, 8
test eax, eax
jne 0x404d9d
cmp esi, 0x50
jne 0x404d9d
push 0x435998
call fcn.00403790
add esp, 4
jmp 0x404d9d
test esi, esi
je 0x404d9d
mov ecx, 0x435888
lea eax, [ebp - 0x63c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404d56
test dx, dx
je 0x404d52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404d56
add eax, 4
add ecx, 4
test dx, dx
jne 0x404d30
xor eax, eax
jmp 0x404d5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404d9d
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x680]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x66c]
push edx
push eax
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.004049c0
add esp, 0x18
mov esi, dword [ebp - 0x67c]
lea ecx, [ebp - 0x668]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x404a80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [0xc31250]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret