Function at 0x49c8c0
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563c19
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x278]
mov esi, dword [ebp + 0xc]
push eax
call fcn.00408200
push esi
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.00408200
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 1
cmovae eax, dword [ebp - 0x248]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x52c], esi
call edi
test eax, eax
jne 0x49c95f
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.0049d000
add esp, 4
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
call edi
test eax, eax
je 0x49cec7
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00408200
push 4
push 0x574524
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 2
call fcn.00404770
cmp dword [ebp - 0x294], 8
lea ecx, [ebp - 0x528]
lea eax, [ebp - 0x2a8]
cmovae eax, dword [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x530], eax
cmp eax, 0xffffffff
jne 0x49c9e8
lea ecx, [ebp - 0x2a8]
call fcn.004029d0
mov esi, 1
jmp 0x49cec7
mov ecx, SysReAllocString
nop dword [eax]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov edi, dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x534], eax
cmp edi, 8
jae 0x49ca3f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x21c], 7
movups xmmword [ebp - 0x230], xmm0
jmp 0x49ca85
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, ecx
lea ecx, [ebp - 0x230]
lea eax, [esi + 1]
push eax
call fcn.00404700
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x230], eax
push ecx
push dword [ebp - 0x534]
push eax
call fcn.004ef620
mov dword [ebp - 0x21c], esi
add esp, 0xc
mov esi, dword [ebp - 0x52c]
mov dword [ebp - 0x220], edi
push 1
push 0x57446c
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.00404770
lea ecx, [ebp - 0x4fc]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49cab0
sub ecx, edx
lea eax, [ebp - 0x4fc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404770
test byte [ebp - 0x528], 0x10
je 0x49cc34
cmp word [ebp - 0x4fc], 0x2e
je 0x49ce31
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49cbaf
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004f0120
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov esi, dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0051ed14
add esp, 0x1c
cmp esi, 1
jl 0x49cb65
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49cb70
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004048f0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0049d000
add esp, 4
push 0x57446c
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004078f0
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00407730
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x230]
push edi
push dword [ebp + 0x10]
mov byte [ebp - 4], 5
push ecx
push eax
call fcn.0049c8c0
add esp, 0x2c
lea ecx, [ebp - 0x260]
mov esi, eax
mov dword [ebp - 0x52c], esi
call fcn.004029d0
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.004029d0
test esi, esi
jne 0x49ce31
test edi, edi
jne 0x49cea5
jmp 0x49ce31
cmp dword [ebp + 0x10], 0
je 0x49cd7e
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x230]
mov dword [ebp - 0x250], 0
cmovae edx, dword [ebp - 0x230]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49cc74
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.004048f0
push 0x57446c
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.004078f0
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.00407730
add esp, 0x18
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 8
jb 0x49ccd5
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x280], 0
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ccf7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x290]
call fcn.004048f0
push 3
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0049d090
add esp, 0xc
movzx esi, al
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x52c], esi
call fcn.004029d0
lea ecx, [ebp - 0x2d8]
call fcn.004029d0
lea ecx, [ebp - 0x2c0]
call fcn.004029d0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.004029d0
test esi, esi
jne 0x49ce31
cmp dword [ebp + 0x14], esi
jne 0x49cea5
jmp 0x49ce31
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49ce31
push 0x57446c
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.004078f0
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 0xa
push ecx
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00407730
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c0]
call fcn.004029d0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push 1
cmovae ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
push ecx
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov dword [ebp - 0x52c], esi
test esi, esi
jne 0x49ce26
cmp dword [ebp + 0x14], eax
jne 0x49ce9a
lea ecx, [ebp - 0x260]
call fcn.004029d0
lea eax, [ebp - 0x528]
push eax
push dword [ebp - 0x530]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x49cea5
mov edx, dword [ebp - 0x21c]
mov ecx, SysReAllocString
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x49c9f0
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49ce8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf7d
push edx
push ecx
call fcn.004845fc
add esp, 8
jmp 0x49c9e8
lea ecx, [ebp - 0x260]
call fcn.004029d0
lea ecx, [ebp - 0x230]
call fcn.004029d0
push dword [ebp - 0x530]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2a8]
call fcn.004029d0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x49cf07
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49cefd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf7d
push edx
push ecx
call fcn.004845fc
add esp, 8
mov edx, dword [ebp - 0x264]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp edx, 8
jb 0x49cf60
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49cf56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf82
push edx
push ecx
call fcn.004845fc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
call fcn.004faed4
call fcn.004faed4
int3