Function at 0x416140
Capabilities:
Copy file
Create directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43dca3
mov eax, dword fs:[0]
push eax
sub esp, 0x588
mov eax, dword [0x44d404]
xor eax, esp
mov dword [esp + 0x580], eax
push ebx
push esi
push edi
mov eax, dword [0x44d404]
xor eax, esp
push eax
lea eax, [esp + 0x598]
mov dword fs:[0], eax
mov eax, dword [0x46d454]
xor edi, edi
cmp eax, edi
jne 0x416195
call fcn.00401e42
mov dword [0x46d454], eax
push 0x46b938
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
call fcn.0041cac0
mov esi, eax
push esi
mov dword [esp + 0x2f4], 7
mov dword [esp + 0x2f0], edi
mov word [esp + 0x2e0], di
call fcn.0042239a
mov ecx, esi
add esp, 4
lea esi, [esp + 0x2d8]
call fcn.004057ef
push 0x44449c
mov dword [esp + 0x5a4], edi
call fcn.0042239a
add esp, 4
mov ebx, eax
push 0x44449c
mov eax, esi
call fcn.00405759
push 0x4444a0
call fcn.0042239a
add esp, 4
mov ebx, eax
push 0x4444a0
mov eax, esi
call fcn.00405759
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x5a4], 2
call fcn.00415a50
mov eax, dword [0x46d454]
add esp, 4
cmp eax, esi
jne 0x41625b
call fcn.00401e42
mov dword [0x46d454], eax
lea edi, [eax + 0x99c]
push edi
mov dword [esp + 0x2d8], 7
mov dword [esp + 0x2d4], esi
mov word [esp + 0x2c4], si
call fcn.0042239a
add esp, 4
mov ecx, edi
lea esi, [esp + 0x2bc]
call fcn.004057ef
push str._scd_
mov byte [esp + 0x5a4], 3
call fcn.0042239a
add esp, 4
mov ebx, eax
push str._scd_
mov eax, esi
call fcn.00405759
mov eax, esi
push eax
lea ecx, [esp + 0x2f8]
push ecx
call fcn.00406c44
add esp, 8
mov byte [esp + 0x5a0], 4
cmp dword [esp + 0x30c], 8
mov eax, dword [esp + 0x2f8]
jae 0x4162e8
lea eax, [esp + 0x2f8]
lea edx, [esp + 0x33c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x4164eb
lea eax, [esp + 0x368]
xor ebx, ebx
push eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.0042239a
mov ecx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, 8
mov edx, ecx
jae 0x41633c
lea edx, [esp + 0x2c]
lea edi, [esp + 0x368]
cmp edi, edx
jb 0x416387
cmp eax, 8
mov edx, ecx
jae 0x416352
lea edx, [esp + 0x2c]
mov edi, dword [esp + 0x3c]
lea edx, [edx + edi*2]
lea edi, [esp + 0x368]
cmp edx, edi
jbe 0x416387
cmp eax, 8
mov eax, ecx
jae 0x41636f
lea eax, [esp + 0x2c]
lea ebx, [esp + 0x368]
sub ebx, eax
push esi
lea eax, [esp + 0x2c]
sar ebx, 1
push eax
call fcn.004013bc
jmp 0x4163f8
cmp esi, 0x7ffffffe
jbe 0x41639c
call fcn.004209a6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
cmp eax, esi
jae 0x41646a
mov ecx, dword [esp + 0x3c]
push ecx
push esi
lea edx, [esp + 0x30]
push edx
call fcn.00401487
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
cmp esi, ebx
jbe 0x4163f8
cmp eax, 8
jae 0x4163c9
lea ecx, [esp + 0x2c]
lea edi, [esi + esi]
push edi
lea edx, [esp + 0x36c]
push edx
add eax, eax
push eax
push ecx
call fcn.00421666
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp dword [esp + 0x40], 8
mov dword [esp + 0x3c], esi
jae 0x4163f4
lea eax, [esp + 0x2c]
mov word [eax + edi], bx
mov byte [esp + 0x5a0], 5
mov ebx, dword [esp + 0x18]
test ebx, ebx
mov edi, dword [esp + 0x1c]
je 0x416489
mov esi, dword [esp + 0x20]
mov ecx, edi
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ebx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x416489
mov edx, dword [esp + 0x5c]
mov byte [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
push 1
push edi
mov esi, edi
call fcn.004071ce
add esp, 0x14
add esi, 0x1c
mov dword [esp + 0x1c], esi
jmp 0x4164a9
cmp esi, ebx
jne 0x4163be
cmp eax, 8
mov dword [esp + 0x3c], ebx
mov eax, ecx
jae 0x416481
lea eax, [esp + 0x2c]
mov word [eax], bx
jmp 0x4163f8
cmp ebx, edi
mov esi, edi
jbe 0x416494
call fcn.0042180b
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00404a51
mov byte [esp + 0x5a0], 4
cmp dword [esp + 0x40], 8
jb 0x4164c5
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042181b
add esp, 4
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x33c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416304
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x46d454]
xor edi, edi
cmp eax, edi
jne 0x416500
call fcn.00401e42
mov dword [0x46d454], eax
push 0x46b938
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
call fcn.0041cac0
mov esi, eax
push esi
mov dword [esp + 0x2bc], 7
mov dword [esp + 0x2b8], edi
mov word [esp + 0x2a8], di
call fcn.0042239a
mov ecx, esi
add esp, 4
lea esi, [esp + 0x2a0]
call fcn.004057ef
push str._scd_
mov byte [esp + 0x5a4], 6
call fcn.0042239a
add esp, 4
mov ebx, eax
push str._scd_
mov eax, esi
call fcn.00405759
mov eax, dword [esp + 0x2a4]
mov esi, 8
cmp dword [esp + 0x2b8], esi
jae 0x416586
lea eax, [esp + 0x2a4]
lea edx, [esp + 0x64]
push edx
push eax
call fcn.00422063
add esp, 8
test eax, eax
je 0x4165da
cmp dword [esp + 0x2b8], esi
mov eax, dword [esp + 0x2a4]
jae 0x4165af
lea eax, [esp + 0x2a4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x2b8], esi
mov eax, dword [esp + 0x2a4]
jae 0x4165cf
lea eax, [esp + 0x2a4]
push 1
push eax
call fcn.0040bf80
add esp, 8
cmp dword [esp + 0x2f0], esi
mov edx, dword [esp + 0x2dc]
jae 0x4165f1
lea edx, [esp + 0x2dc]
lea ecx, [esp + 0x310]
call fcn.00416ad0
xor ebx, ebx
mov byte [esp + 0x5a0], 7
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], ebx
lea esp, [esp]
cmp ecx, ebx
je 0x4168d7
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x4168d7
mov eax, dword [esp + 0x10]
add ecx, eax
push ecx
lea ecx, [esp + 0x2a4]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.00406dc9
add esp, 0xc
mov ebx, eax
mov byte [esp + 0x5a0], 8
mov esi, dword [esp + 0x18]
test esi, esi
je 0x416690
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x416699
call fcn.0042180b
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add esi, eax
push esi
lea ecx, [esp + 0x2c0]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00406dc9
add esp, 0xc
cmp dword [ebx + 0x18], 8
jb 0x4166c0
mov ebx, dword [ebx + 4]
jmp 0x4166c3
add ebx, 4
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x4166d2
mov eax, dword [eax + 4]
jmp 0x4166d5
add eax, 4
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0x40], esi
jb 0x4166f2
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042181b
add esp, 4
xor eax, eax
mov byte [esp + 0x5a0], 7
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], eax
mov word [esp + 0x2c], ax
jb 0x416720
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0042181b
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x416745
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41674e
call fcn.0042180b
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
add esi, edx
push esi
lea eax, [esp + 0x2a4]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.00406dc9
mov esi, 8
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x416779
mov eax, dword [eax + 4]
jmp 0x41677c
add eax, 4
push 1
push eax
call fcn.0040bf80
add esp, 8
cmp dword [esp + 0x7c], esi
jb 0x41679a
mov edx, dword [esp + 0x68]
push edx
call fcn.0042181b
add esp, 4
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x48], ebx
mov dword [esp + 0x5c], ebx
jbe 0x4167b1
call fcn.0042180b
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4167da
mov esi, dword [esp + 0x1c]
mov edi, esi
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x24], eax
jb 0x4167eb
call fcn.0042180b
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x48], ebx
mov eax, dword [esp + 0x10]
lea edx, [ecx + eax]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebx
jbe 0x416811
call fcn.0042180b
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
cmp edi, ebx
jbe 0x416826
call fcn.0042180b
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x58]
cmp edi, ebx
je 0x41684e
mov esi, dword [esp + 0x54]
mov eax, esi
mov ecx, edi
call fcn.00418d70
test eax, eax
je 0x416846
add edi, 0x1c
cmp edi, ebx
jne 0x416832
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edi, dword [esp + 0x5c]
je 0x4168bc
test ecx, ecx
je 0x416873
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x24], eax
jb 0x41687c
call fcn.0042180b
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
cmp dword [ecx + ebx + 0x18], 8
jb 0x41688d
mov ecx, dword [ecx + ebx + 4]
jmp 0x416891
lea ecx, [ecx + ebx + 4]
lea edi, [esp + 0x310]
call fcn.00417250
add dword [esp + 0x24], 1
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
add ebx, 0x1c
mov dword [esp + 0x10], ebx
xor ebx, ebx
jmp 0x416620
mov ebx, dword [esp + 0x10]
add dword [esp + 0x24], 1
mov edi, dword [esp + 0x24]
add ebx, 0x1c
mov dword [esp + 0x10], ebx
xor ebx, ebx
jmp 0x416620
lea eax, [esp + 0x310]
call fcn.004185c0
mov edi, 8
cmp dword [esp + 0x338], edi
jb 0x416901
mov eax, dword [esp + 0x324]
push eax
call fcn.0042181b
add esp, 4
mov eax, dword [esp + 0x314]
cmp eax, ebx
mov esi, 7
mov dword [esp + 0x338], esi
mov dword [esp + 0x334], ebx
mov word [esp + 0x324], bx
je 0x416930
push eax
call fcn.0042181b
add esp, 4
cmp dword [esp + 0x2b8], edi
mov dword [esp + 0x314], ebx
mov dword [esp + 0x318], ebx
mov dword [esp + 0x31c], ebx
jb 0x41695e
mov ecx, dword [esp + 0x2a4]
push ecx
call fcn.0042181b
add esp, 4
cmp dword [esp + 0x30c], edi
mov dword [esp + 0x2b8], esi
mov dword [esp + 0x2b4], ebx
mov word [esp + 0x2a4], bx
jb 0x41698d
mov edx, dword [esp + 0x2f8]
push edx
call fcn.0042181b
add esp, 4
cmp dword [esp + 0x2d4], edi
mov dword [esp + 0x30c], esi
mov dword [esp + 0x308], ebx
mov word [esp + 0x2f8], bx
jb 0x4169bc
mov eax, dword [esp + 0x2c0]
push eax
call fcn.0042181b
add esp, 4
mov dword [esp + 0x2d4], esi
mov esi, dword [esp + 0x48]
cmp esi, ebx
mov dword [esp + 0x2d0], ebx
mov word [esp + 0x2c0], bx
je 0x416a23
mov ebx, dword [esp + 0x4c]
cmp esi, ebx
je 0x416a13
add esi, 0x18
xor edi, edi
cmp dword [esi], 8
jb 0x4169f8
mov ecx, dword [esi - 0x14]
push ecx
call fcn.0042181b
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], edi
mov word [esi - 0x14], di
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, ebx
jne 0x4169e7
mov esi, dword [esp + 0x48]
push esi
call fcn.0042181b
add esp, 4
mov edi, 8
xor ebx, ebx
mov esi, dword [esp + 0x18]
cmp esi, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
je 0x416a80
mov ebx, dword [esp + 0x1c]
cmp esi, ebx
je 0x416a70
add esi, 0x18
xor edi, edi
cmp dword [esi], 8
jb 0x416a55
mov eax, dword [esi - 0x14]
push eax
call fcn.0042181b
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], edi
mov word [esi - 0x14], di
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, ebx
jne 0x416a44
mov esi, dword [esp + 0x18]
push esi
call fcn.0042181b
add esp, 4
mov edi, 8
xor ebx, ebx
cmp dword [esp + 0x2f0], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jb 0x416aa5
mov edx, dword [esp + 0x2dc]
push edx
call fcn.0042181b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x598]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x580]
xor ecx, esp
call fcn.00421402
mov esp, ebp
pop ebp
ret