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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dd0f6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x7b2214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b0], edx
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
push 0x250
push eax
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 5
push eax
call fcn.00668940
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x4467d7
cmp dword [ebp + 0x30], 0
je 0x4467d7
lea ecx, [ebp + 8]
call fcn.00446b00
lea ecx, [ebp + 0x20]
call fcn.00446b00
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push eax
call fcn.00432ef0
mov edx, dword [ebp - 0x44]
mov eax, edx
mov ecx, dword [ebp - 0x48]
sub eax, ecx
cmp eax, 1
jb 0x44670f
cmp edx, 8
lea esi, [ebp - 0x58]
push 2
cmovae esi, dword [ebp - 0x58]
lea edi, [ecx + 1]
push 0x76a02c
mov dword [ebp - 0x48], edi
lea eax, [esi + ecx*2]
push eax
call fcn.006683c0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x44672d
push 1
push 0x76a02c
mov byte [ebp - 0x2ac], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x2ac]
push 1
call fcn.0044f710
cmp dword [ebp + 0x4c], 8
lea ecx, [ebp + 0x38]
mov edx, dword [ebp - 0x44]
mov eax, edx
cmovae ecx, dword [ebp + 0x38]
mov ebx, dword [ebp - 0x48]
sub eax, ebx
mov edi, dword [ebp + 0x48]
cmp edi, eax
ja 0x446775
cmp edx, 8
lea eax, [edi + ebx]
mov dword [ebp - 0x48], eax
lea esi, [ebp - 0x58]
cmovae esi, dword [ebp - 0x58]
lea eax, [edi + edi]
push eax
push ecx
lea eax, [esi + ebx*2]
push eax
call fcn.006683c0
add esp, 0xc
lea eax, [ebx + edi]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x44678d
push edi
push ecx
mov byte [ebp - 0x2ac], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x2ac]
push edi
call fcn.0044f710
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2ac], eax
cmp eax, 0xffffffff
je 0x4467d7
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.0044e260
call fcn.004436a0
add esp, 0x18
test eax, eax
jne 0x446827
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
lea ecx, [ebp - 0x58]
call fcn.00432e40
lea ecx, [ebp - 0x28]
call fcn.00432e40
lea ecx, [ebp - 0x40]
call fcn.00432e40
lea ecx, [ebp + 8]
call fcn.00432e40
lea ecx, [ebp + 0x20]
call fcn.00432e40
lea ecx, [ebp + 0x38]
call fcn.00432e40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00629f1d
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x2ac]
mov ax, word [ebp - 0x27a]
mov edx, 0x2e
cmp dx, word [ebp - 0x27c]
jne 0x44684d
xor ecx, ecx
cmp cx, ax
je 0x446ad4
cmp dx, ax
jne 0x446861
xor eax, eax
cmp ax, word [ebp - 0x278]
je 0x446ad4
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push eax
call fcn.00432ef0
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 1
jb 0x4468b2
cmp edx, 8
lea esi, [ebp - 0x40]
push 2
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 1]
push 0x76a02c
mov dword [ebp - 0x30], edi
lea eax, [esi + ecx*2]
push eax
call fcn.006683c0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4468d0
push 1
push 0x76a02c
mov byte [ebp - 0x2b8], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x2b8]
push 1
call fcn.0044f710
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4468e0
mov ebx, dword [ebp - 0x2c]
sub ecx, edx
mov edx, dword [ebp - 0x30]
mov eax, ebx
sar ecx, 1
sub eax, edx
cmp ecx, eax
ja 0x44692c
cmp ebx, 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
lea eax, [ebp - 0x27c]
push eax
lea edi, [edx + ecx]
mov dword [ebp - 0x30], edi
lea eax, [esi + edx*2]
push eax
call fcn.006683c0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x44694a
push ecx
lea eax, [ebp - 0x27c]
mov byte [ebp - 0x2bc], 0
push eax
push dword [ebp - 0x2bc]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0044f710
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x28]
push eax
call fcn.00432ef0
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 1
jb 0x44699b
cmp edx, 8
lea esi, [ebp - 0x28]
push 2
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 1]
push 0x76a02c
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.006683c0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4469b9
push 1
push 0x76a02c
mov byte [ebp - 0x2c0], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c0]
push 1
call fcn.0044f710
lea eax, [ebp - 0x27c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4469c2
mov ebx, dword [ebp - 0x14]
sub eax, edx
mov edx, dword [ebp - 0x18]
mov ecx, ebx
sar eax, 1
sub ecx, edx
cmp eax, ecx
ja 0x446a0d
lea edi, [edx + eax]
cmp ebx, 8
lea esi, [ebp - 0x28]
mov dword [ebp - 0x18], edi
cmovae esi, dword [ebp - 0x28]
add eax, eax
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [esi + edx*2]
push eax
call fcn.006683c0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x446a2b
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 0x2b4], 0
push ecx
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x28]
push eax
call fcn.0044f710
test byte [ebp - 0x2a8], 0x10
je 0x446a9e
mov esi, dword [ebp - 0x2c4]
test esi, esi
je 0x446ace
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push eax
call fcn.0044e260
sub esp, 0x18
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2cc], esp
mov ecx, esp
push eax
call fcn.0044e260
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.0044e260
mov ebx, dword [ebp - 0x2b0]
mov ecx, esi
mov edx, ebx
mov byte [ebp - 4], 5
call fcn.00446610
add esp, 0x48
test eax, eax
jne 0x446ace
test ebx, ebx
jmp 0x446ac8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x446ace
cmp dword [ebp - 0x2b0], eax
je 0x4467cb
mov ebx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44682d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
jmp 0x4467d9