Function at 0x402ff5
Capabilities:
Copy file
Create thread
Move file
Terminate thread

Disassembly:
mov eax, 0x41d981
call fcn.004198ec
sub esp, 0x290
push ebx
push esi
push edi
lea eax, [ebp - 0x90]
push eax
mov edi, ecx
call fcn.00401108
and dword [ebp - 4], 0
lea esi, [ebp - 0x6c]
call fcn.00405d11
mov byte [ebp - 4], 1
lea esi, [ebp - 0x5c]
call fcn.00405d11
mov byte [ebp - 4], 2
push 1
push 0x200000
lea esi, [ebp - 0x30]
mov byte [ebp - 0x11], 0
call fcn.00405d65
mov byte [ebp - 4], 3
cmp dword [edi + 0x588], 0
je 0x4034cc
lea eax, [edi + 0x57a4]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40306b
push eax
call fcn.00405cd1
jmp 0x40306d
xor al, al
test al, al
je 0x4034cc
call fcn.00403925
sub eax, dword [edi + 0x5810]
mov dword [ebp - 0x38], eax
cmp eax, 0xe10
jb 0x403174
call fcn.00403925
mov ebx, dword [edi + 0x58c]
mov dword [edi + 0x5810], eax
mov eax, dword [ebp - 0x2c]
push 0x14
mov dword [ebp - 0x18], eax
pop edx
lea ecx, [ebp - 0x4c]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x4030ab
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x38]
push eax
push edx
lea eax, [ebp - 0x4c]
push eax
push 0x401dc3
push 0x10000
push edx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x3c], dl
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x403120
mov esi, ebx
imul esi, esi, 0x14
push dword [esi + edi + 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403105
cmp eax, 0xffffffff
jne 0x403117
inc dword [esi + edi + 0x318]
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x3c], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
je 0x403222
mov dword [edi + 0x58c], ebx
test eax, eax
jle 0x40322f
call fcn.00403925
cmp dword [ebp - 0x30], 0
mov dword [edi + 0x5810], eax
je 0x403160
cmp dword [ebp - 0x18], 1
jle 0x403160
push dword [ebp - 0x18]
push dword [ebp - 0x30]
call fcn.00401923
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x18]
mov esi, edi
call fcn.00401a84
and dword [edi + 0x5954], 0
xor esi, esi
xor ebx, ebx
mov edx, 0x118
cmp dword [edi + 0x2bfc], esi
jle 0x4031b1
lea eax, [edi + 0xa08]
cmp dword [eax - 0x108], 0xff00aaee
jne 0x4031a6
mov ecx, dword [eax]
cmp ecx, esi
jle 0x4031a6
cmp ecx, 0x10
jl 0x403246
inc ebx
add eax, edx
cmp ebx, dword [edi + 0x2bfc]
jl 0x40318b
xor ebx, ebx
cmp dword [edi + 0x4f00], esi
jle 0x4031e7
lea eax, [edi + 0x2d0c]
cmp dword [eax - 0x108], 0xff00aaee
jne 0x4031dc
mov ecx, dword [eax]
cmp ecx, esi
jle 0x4031dc
cmp ecx, 0x10
jl 0x403446
inc ebx
add eax, edx
cmp ebx, dword [edi + 0x4f00]
jl 0x4031c1
cmp byte [edi + 0x581c], 0
jne 0x4034bf
mov eax, dword [edi + 0x5814]
cmp eax, esi
je 0x4034bf
mov edx, dword [edi + 0x5818]
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], edx
mov dword [edi + 0x5814], esi
mov dword [edi + 0x5818], esi
jmp 0x4032c7
lea eax, [ebx + 1]
xor edx, edx
div dword [edi + 0x588]
mov ebx, edx
cmp ebx, dword [edi + 0x58c]
jne 0x40309f
inc dword [edi + 0x5954]
jmp 0x403174
imul ebx, ebx, 0x118
lea esi, [ebx + edi]
dec dword [esi + 0xa08]
lea ecx, [esi + 0x908]
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x90c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xa08]
shl eax, 4
push eax
lea eax, [esi + 0x918]
push eax
push ecx
call fcn.00412d60
mov ecx, dword [esi + 0xa08]
shl ecx, 4
add ecx, ebx
xor eax, eax
mov dword [ecx + edi + 0x908], eax
mov ecx, dword [esi + 0xa08]
shl ecx, 4
add ecx, ebx
mov dword [ecx + edi + 0x90c], eax
mov ecx, dword [esi + 0xa08]
add ecx, 0x91
shl ecx, 4
add ecx, ebx
mov dword [ecx + edi], eax
mov byte [esi + 0x914], 1
add esp, 0xc
cmp dword [ebp - 0x1c], eax
je 0x4032d1
push dword [ebp - 0x1c]
call fcn.00405cf1
mov byte [ebp - 4], 2
lea esi, [ebp - 0x30]
call fcn.00405f2c
cmp dword [ebp - 0x18], 0
je 0x4034dd
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4034dd
jle 0x4032ff
push 0
push ebx
lea esi, [ebp - 0x6c]
call fcn.00405f9d
push 0
push dword [ebp - 0x18]
mov eax, ebx
lea ecx, [ebp - 0x6c]
call fcn.004060be
lea eax, [ebp - 0x6c]
lea ebx, [ebp - 0x90]
call fcn.004013ef
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x34], 0x5a72b99
call fcn.00405f3e
push 1
push 7
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.0040151f
test eax, eax
je 0x403351
mov ecx, dword [eax + 9]
add ecx, dword [ebp - 0x7c]
mov eax, dword [eax + 5]
push 0
push ecx
mov ecx, esi
call fcn.004060be
cmp dword [ebp - 0x58], 0
jle 0x403436
push 3
lea eax, [ebp - 0x29c]
push eax
push edi
call fcn.00403a65
mov esi, str..exe
push esi
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x29c]
push eax
call fcn.00404c6d
mov ebx, eax
test ebx, ebx
je 0x403436
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push ebx
push edi
call fcn.00404d1a
test al, al
je 0x4033ca
push esi
push ebx
push edi
call fcn.00404e26
mov esi, eax
test esi, esi
je 0x4033ca
push 0
push esi
xor edi, edi
call fcn.00402aaf
test al, al
je 0x4033c4
mov byte [ebp - 0x11], 1
push esi
call fcn.00405c44
call fcn.004016c1
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..csp
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x29c]
push eax
call fcn.004016c1
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x403430
push 0
call fcn.004016c1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x29c]
test eax, eax
je 0x403430
push 0x410
push eax
push 0x42c5e0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.00405c44
push dword [ebp - 0x18]
call fcn.00405c44
mov bl, byte [ebp - 0x11]
jmp 0x4034df
imul ebx, ebx, 0x118
lea esi, [ebx + edi]
dec dword [esi + 0x2d0c]
lea ecx, [esi + 0x2c0c]
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x2c10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x2d0c]
shl eax, 4
push eax
lea eax, [esi + 0x2c1c]
push eax
push ecx
call fcn.00412d60
mov ecx, dword [esi + 0x2d0c]
shl ecx, 4
add ecx, ebx
xor eax, eax
mov dword [ecx + edi + 0x2c0c], eax
mov ecx, dword [esi + 0x2d0c]
add ecx, 0x2c1
shl ecx, 4
add ecx, ebx
mov dword [ecx + edi], eax
mov ecx, dword [esi + 0x2d0c]
shl ecx, 4
add ecx, ebx
mov dword [ecx + edi + 0x2c14], eax
jmp 0x4032c1
cmp dword [ebp - 0x1c], esi
je 0x4034cc
push dword [ebp - 0x1c]
call fcn.00405cf1
mov byte [ebp - 4], 2
lea esi, [ebp - 0x30]
call fcn.00405f2c
jmp 0x40343e
xor bl, bl
mov byte [ebp - 4], 1
lea esi, [ebp - 0x5c]
call fcn.00405f2c
mov byte [ebp - 4], 0
lea esi, [ebp - 0x6c]
call fcn.00405f2c
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x90]
push eax
call fcn.0040114f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret