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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caa03
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
push esi
push edi
push ecx
lea edi, [ebp - 0x4ec]
mov ecx, 0x138
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp esi, esp
call fcn.004c3b36
test eax, eax
jne 0x4389d2
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0048c740
add esp, 4
test eax, eax
jne 0x4389d2
xor eax, eax
jmp 0x439048
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x34]
call fcn.004093c0
mov dword [ebp - 4], 0
lea edi, [ebp - 0x34]
call fcn.0048c000
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x58]
call fcn.004093c0
mov byte [ebp - 4], 1
lea edi, [ebp - 0x58]
call fcn.0048c000
lea ecx, [ebp - 0x64]
call fcn.00418110
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00418110
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00402f90
mov byte [ebp - 4], 4
push 0x4de03c
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x2e0]
push eax
call fcn.0043b450
add esp, 0xc
mov dword [ebp - 0x4a8], eax
mov ecx, dword [ebp - 0x4a8]
mov dword [ebp - 0x4ac], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4ac]
push edx
lea ecx, [ebp - 0x7c]
call fcn.00418170
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2e0]
call fcn.00418010
mov dword [ebp - 0x2dc], 0xffffffff
mov esi, esp
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0042cd20
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0xffffffff
je 0x438ff9
mov ecx, dword [ebp - 0x2d4]
and ecx, 0x10
je 0x438bf3
push 0x4de044
lea edx, [ebp - 0x2a8]
push edx
call fcn.004a29a3
add esp, 8
test eax, eax
je 0x438bee
push 0x4de048
lea eax, [ebp - 0x2a8]
push eax
call fcn.004a29a3
add esp, 8
test eax, eax
je 0x438bee
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x2fc]
call fcn.004093c0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x2a8]
push edx
lea ecx, [ebp - 0x334]
call fcn.004093c0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x58]
call fcn.0048bea0
push eax
lea ecx, [ebp - 0x318]
push ecx
call fcn.004324b0
add esp, 0xc
mov dword [ebp - 0x4b0], eax
mov edx, dword [ebp - 0x4b0]
mov dword [ebp - 0x4b4], edx
mov byte [ebp - 4], 8
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x34]
call fcn.0048bea0
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.004324b0
add esp, 0xc
mov dword [ebp - 0x4b8], eax
mov edx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x4b4]
call fcn.0048bea0
push eax
mov ecx, dword [ebp - 0x4bc]
call fcn.0048bea0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00438960
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x350]
call fcn.00406930
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x318]
call fcn.00406930
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x334]
call fcn.00406930
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2fc]
call fcn.00406930
jmp 0x438d37
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x36c]
call fcn.004093c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x36c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0048bea0
push eax
lea edx, [ebp - 0x388]
push edx
call fcn.004324b0
add esp, 0xc
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x4c4]
call fcn.0048bea0
push eax
lea ecx, [ebp - 0x64]
call fcn.00403020
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x388]
call fcn.00406930
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x36c]
call fcn.00406930
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x3a4]
call fcn.004093c0
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x3a4]
push edx
lea ecx, [ebp - 0x58]
call fcn.0048bea0
push eax
lea eax, [ebp - 0x3c0]
push eax
call fcn.004324b0
add esp, 0xc
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4cc], ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x4cc]
call fcn.0048bea0
push eax
lea ecx, [ebp - 0x70]
call fcn.00403020
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x3c0]
call fcn.00406930
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3a4]
call fcn.00406930
mov esi, esp
push 1
lea ecx, [ebp - 0x70]
call fcn.0042cd20
push eax
lea ecx, [ebp - 0x64]
call fcn.0042cd20
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp esi, esp
call fcn.004c3b36
test eax, eax
jne 0x438d37
mov esi, esp
push 0
lea ecx, [ebp - 0x70]
call fcn.0042cd20
push eax
lea ecx, [ebp - 0x64]
call fcn.0042cd20
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp esi, esp
call fcn.004c3b36
mov esi, esp
lea edx, [ebp - 0x2d4]
push edx
mov eax, dword [ebp - 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, esp
call fcn.004c3b36
test eax, eax
je 0x438fe3
mov ecx, dword [ebp - 0x2d4]
and ecx, 0x10
je 0x438e9a
push 0x4de050
lea edx, [ebp - 0x2a8]
push edx
call fcn.004a29a3
add esp, 8
test eax, eax
je 0x438e95
push 0x4de054
lea eax, [ebp - 0x2a8]
push eax
call fcn.004a29a3
add esp, 8
test eax, eax
je 0x438e95
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x3dc]
call fcn.004093c0
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x2a8]
push edx
lea ecx, [ebp - 0x414]
call fcn.004093c0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x3dc]
push eax
lea ecx, [ebp - 0x58]
call fcn.0048bea0
push eax
lea ecx, [ebp - 0x3f8]
push ecx
call fcn.004324b0
add esp, 0xc
mov dword [ebp - 0x4d0], eax
mov edx, dword [ebp - 0x4d0]
mov dword [ebp - 0x4d4], edx
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x34]
call fcn.0048bea0
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.004324b0
add esp, 0xc
mov dword [ebp - 0x4d8], eax
mov edx, dword [ebp - 0x4d8]
mov dword [ebp - 0x4dc], edx
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x4d4]
call fcn.0048bea0
push eax
mov ecx, dword [ebp - 0x4dc]
call fcn.0048bea0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00438960
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x430]
call fcn.00406930
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3f8]
call fcn.00406930
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x414]
call fcn.00406930
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3dc]
call fcn.00406930
jmp 0x438fde
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x44c]
call fcn.004093c0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x44c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0048bea0
push eax
lea edx, [ebp - 0x468]
push edx
call fcn.004324b0
add esp, 0xc
mov dword [ebp - 0x4e0], eax
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x4e4], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x4e4]
call fcn.0048bea0
push eax
lea ecx, [ebp - 0x64]
call fcn.00403020
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x468]
call fcn.00406930
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44c]
call fcn.00406930
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x484]
call fcn.004093c0
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x484]
push edx
lea ecx, [ebp - 0x58]
call fcn.0048bea0
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.004324b0
add esp, 0xc
mov dword [ebp - 0x4e8], eax
mov ecx, dword [ebp - 0x4e8]
mov dword [ebp - 0x4ec], ecx
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x4ec]
call fcn.0048bea0
push eax
lea ecx, [ebp - 0x70]
call fcn.00403020
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x4a0]
call fcn.00406930
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x484]
call fcn.00406930
mov esi, esp
push 1
lea ecx, [ebp - 0x70]
call fcn.0042cd20
push eax
lea ecx, [ebp - 0x64]
call fcn.0042cd20
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp esi, esp
call fcn.004c3b36
test eax, eax
jne 0x438fde
mov esi, esp
push 0
lea ecx, [ebp - 0x70]
call fcn.0042cd20
push eax
lea ecx, [ebp - 0x64]
call fcn.0042cd20
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp esi, esp
call fcn.004c3b36
jmp 0x438d37
mov esi, esp
mov edx, dword [ebp - 0x2dc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x4a4], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.00418010
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00418010
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00418010
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00406930
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00406930
mov eax, dword [ebp - 0x4a4]
push edx
mov ecx, ebp
push eax
lea edx, [0x439084]
call fcn.004c3b59
pop eax
pop edx
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.004a1873
add esp, 0x4ec
cmp ebp, esp
call fcn.004c3b36
mov esp, ebp
pop ebp
ret 8