Function at 0x404010
Capabilities:
Copy file
Create thread
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x28c]
sub esp, 0x28c
push 0xfffffffffffffffe
push 0x41be28
push 0x40aaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x42ac1c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x288], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 0x294]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0x298]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 0xffffffff
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], esi
call dword [0x42abfc]
cmp byte [ebp + 0x2a4], 0
je 0x4040a2
push ebx
mov ecx, edi
call fcn.00403c30
cmp eax, esi
jl 0x4040a2
push 0x1d4c0
push eax
mov ecx, edi
call fcn.00403c90
mov dword [ebp - 0x1c], esi
cmp esi, 0x14
jge 0x40435f
mov ecx, esi
imul ecx, ecx, 0x134
cmp dword [ecx + edi + 0x1c], 0
jne 0x404478
mov dword [ebp - 4], 0
push 0x5c
push ebx
call fcn.00409870
add esp, 8
lea edx, [ebp + 0x184]
test eax, eax
jge 0x404146
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [ebp + 0x184]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4040f2
mov ax, word [0x418950]
mov word [edi], ax
mov eax, ebx
mov ecx, ebx
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404110
sub eax, ecx
mov esi, ecx
lea edi, [ebp + 0x184]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404126
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
jmp 0x404156
mov ecx, ebx
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x404148
lea ecx, [ebp + 0x184]
push ecx
push esi
push str.CModule::StartModule_Loading:__ld__s
call fcn.00409f90
push 0x5c
lea edx, [ebp + 0x184]
push edx
call fcn.00409870
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0x64
jge 0x404246
imul esi, esi, 0x134
add edi, esi
lea esi, [edi + 0x30]
push ebx
lea eax, [ebp + 0x184]
push eax
push esi
call fcn.0040ac70
mov ecx, dword [ebp - 0x24]
push ecx
push 0x418924
lea edx, [edi + ebx + 0x30]
push edx
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
call edi
push esi
push str._s.lck
lea eax, [ebp]
push eax
call edi
add esp, 0x24
mov eax, esi
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4041d0
mov ecx, dword [str..ntr]
mov dword [eax], ecx
mov dl, byte [0x418918]
mov byte [eax + 4], dl
push 0
push 0x122
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
je 0x404319
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
lea ecx, [ebp + 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404301
push 0x122
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
imul esi, esi, 0x134
add esi, edi
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4043fd
push str.Start
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x4043e4
push str.Stop
mov ecx, dword [esi + 0x1c]
push ecx
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x4043e4
push str.Data
mov edx, dword [esi + 0x1c]
push edx
call edi
mov dword [esi + 0x28], eax
lea eax, [esi + 8]
push 0
mov ecx, dword [ebp - 0x30]
push ecx
push eax
call fcn.00409a70
lea eax, [esi + 0xc]
push 0
mov edx, dword [ebp - 0x38]
push edx
push eax
call fcn.00409a70
add esp, 0x18
mov ebx, dword [ebp + 0x29c]
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0x2a0]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x14], eax
test bl, 2
je 0x404328
push str.Event
mov ecx, dword [esi + 0x1c]
push ecx
call edi
mov dword [esi + 0x2c], eax
test eax, eax
je 0x404328
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1810], edi
jmp 0x40432e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add dword [ebp - 0x24], 1
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
jmp 0x404182
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
test bl, 4
je 0x4043a1
mov dword [eax + 0x1814], edi
lea edx, [ebp - 0x34]
push edx
push 0
push eax
push fcn.00403ea0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x404358
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x404377
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x288]
xor ecx, ebp
call fcn.0040a1eb
add ebp, 0x28c
mov esp, ebp
pop ebp
ret 0x18
test bl, 1
je 0x4043b4
mov dword [eax + 0x1814], edi
push eax
call fcn.00403ea0
jmp 0x404358
mov eax, dword [esi + 8]
push eax
push edi
push str.CModule::StartModule_Start:__ld__s
call fcn.00409f90
add esp, 0xc
cmp dword [esi + 0x20], 0
je 0x404355
mov ecx, dword [esi + 0x18]
push ecx
mov edx, dword [esi + 0xc]
push edx
call fcn.00409380
push eax
mov eax, dword [esi + 0x20]
call eax
jmp 0x404355
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CModule::StartModule_GetProcAddress_Error___ld_
call fcn.00409f90
add esp, 8
jmp 0x404358
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CModule::StartModule_LoadLibrary_Error___ld_
call fcn.00409f90
add esp, 8
jmp 0x404358
add esi, 1
jmp 0x4040a2