Function at 0x409e1d
Capabilities:
Copy file
Create thread
Delete file
Get common file path
Link many functions at runtime
Set file attributes

Disassembly:
push ebp
sub esp, 0x308
lea ebp, [esp - 4]
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp + 0x308], eax
push 0x38
mov eax, 0x4405d6
call fcn.004266a4
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov esi, dword [ebp + 0x314]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 0x318]
mov dword [ebp - 0x38], eax
or dword [ebp - 0x24], 0xffffffff
and dword [ebp - 0x30], 0
and dword [ebp - 0x1c], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 1
cmp byte [ebp + 0x324], 0
je 0x409e8c
push esi
call fcn.004098ba
test eax, eax
jl 0x409e8c
push 0x1d4c0
push eax
mov ecx, ebx
call fcn.00409bba
xor edi, edi
inc edi
push edi
lea eax, [ebx + 0x18bc]
push eax
lea ecx, [ebp - 0x44]
call fcn.004099e1
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebx + 0x38]
cmp byte [eax], 0
je 0x409ebf
inc dword [ebp - 0x14]
add eax, 0x13c
cmp dword [ebp - 0x14], 0x14
jl 0x409eaa
jmp 0x409ed1
mov byte [ebp - 0x16], 1
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x13c
mov byte [eax + ebx + 0x38], 1
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x44], vtable.CriticalSectionLock.0
lea ecx, [ebp - 0x44]
call fcn.00409892
cmp byte [ebp - 0x16], 0
je 0x40a21c
mov dword [ebp - 4], edi
push 0x5c
push esi
call fcn.00413dc6
pop ecx
pop ecx
test eax, eax
lea eax, [ebp + 0x204]
jge 0x409f31
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str._f0h1v
lea eax, [ebp + 0x204]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
push esi
lea eax, [ebp + 0x204]
push eax
call edi
jmp 0x409f39
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x204]
push eax
push dword [ebp - 0x14]
push str.CModule::StartModule_Loading:__ld__s
call fcn.00414978
push 0x5c
lea eax, [ebp + 0x204]
push eax
call fcn.00413dc6
add esp, 0x14
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x20], 0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
cmp dword [ebp - 0x20], 0x64
jge 0x40a019
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x13c
lea esi, [eax + ebx]
lea ebx, [esi + 0x39]
push dword [ebp - 0x2c]
lea eax, [ebp + 0x204]
push eax
push ebx
call fcn.00428a70
push dword [ebp - 0x20]
push 0x445874
mov eax, dword [ebp - 0x2c]
lea eax, [esi + eax + 0x39]
push eax
call edi
push ebx
push str._s.lck
lea eax, [ebp + 0x100]
push eax
call edi
add esp, 0x24
push str..ntr
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
push eax
mov esi, 0x122
push esi
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x40a144
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push ebx
lea eax, [ebp + 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40a12a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [ebp - 0x28]
cmp dword [ebp + 0x328], 0
je 0x40a049
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x13c
lea eax, [eax + ebx + 0x39]
push eax
call fcn.0041288f
pop ecx
test al, al
jne 0x40a049
push str.CModule::StartModule_Cert_Error
call fcn.00414978
pop ecx
mov byte [ebp - 0x15], 0
cmp byte [ebp - 0x15], 0
je 0x40a1e2
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x13c
lea esi, [eax + ebx]
lea eax, [esi + 0x39]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x20], eax
test eax, eax
je 0x40a1cf
push str.Start
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x40a1c1
push str.Stop
push dword [esi + 0x20]
call edi
mov dword [esi + 0x28], eax
test eax, eax
je 0x40a1c1
push str.Data
push dword [esi + 0x20]
call edi
mov dword [esi + 0x2c], eax
push str.DataExt
push dword [esi + 0x20]
call edi
mov dword [esi + 0x30], eax
test eax, eax
je 0x40a0cb
push str.CModule::StartModule:_Module_accepts_extended_data
call fcn.00414978
pop ecx
lea eax, [esi + 0xc]
push 0
push dword [ebp - 0x34]
push eax
call fcn.00413e68
lea eax, [esi + 0x10]
push 0
push dword [ebp - 0x38]
push eax
call fcn.00413e68
add esp, 0x18
mov eax, dword [ebp + 0x31c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x320]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
test byte [ebp + 0x31c], 2
je 0x40a14f
push str.Event
push dword [esi + 0x20]
call edi
mov dword [esi + 0x34], eax
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x40a152
mov dword [ebx + 0x18b4], edi
jmp 0x40a152
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
lea eax, [ebp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
jmp 0x409f6b
mov edi, dword [ebp - 0x14]
test byte [ebp + 0x31c], 4
je 0x40a17f
mov dword [ebx + 0x18b8], edi
lea eax, [ebp - 0x30]
push eax
xor eax, eax
push eax
push ebx
push fcn.00409d32
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x40a1e2
jmp 0x40a1bc
test byte [ebp + 0x31c], 1
je 0x40a196
mov dword [ebx + 0x18b8], edi
push ebx
call fcn.00409d32
jmp 0x40a1bc
push dword [esi + 0xc]
push edi
push str.CModule::StartModule_Start:__ld__s
call fcn.00414978
add esp, 0xc
cmp dword [esi + 0x24], 0
je 0x40a1bc
push dword [esi + 0x1c]
push dword [esi + 0x10]
call fcn.00412c48
push eax
call dword [esi + 0x24]
mov dword [ebp - 0x24], edi
jmp 0x40a1e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CModule::StartModule_GetProcAddress_Error___ld_
jmp 0x40a1db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CModule::StartModule_LoadLibrary_Error___ld_
call fcn.00414978
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x40a227
push str.CModule::StartModule_no_empty_position_found
call fcn.00414978
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x40a243
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x308]
xor ecx, ebp
call fcn.00425c6b
add ebp, 0x30c
leave
ret 0x18