Function at 0x401a30
Capabilities:
Create directory
Create thread
Delete file
Resume thread
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x584
mov eax, dword [0x41f008]
xor eax, esp
mov dword [esp + 0x580], eax
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x7c]
push ebx
mov ebx, dword [ebp + 8]
sub edx, ecx
push esi
push edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401a60
lea eax, [esp + 0x88]
push str.PlcDtbs
push eax
call fcn.004097bf
lea ecx, [esp + 0x90]
add esp, 8
dec ecx
mov byte [eax], 0
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401a90
mov eax, dword [str.P2lTemp]
push dword [0x4213dc]
mov dword [ecx], eax
mov eax, dword [0x41d208]
push dword [0x4213d8]
mov dword [ecx + 4], eax
mov al, byte [0x41d20c]
mov byte [ecx + 8], al
lea eax, [esp + 0x50]
push str.Wrk_d__d
push eax
call fcn.00401770
lea edx, [esp + 0x58]
add esp, 0x10
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x401ad5
lea edi, [esp + 0x88]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401ae6
mov ecx, edx
mov dword [esp + 0x18], 0xc
shr ecx, 2
lea eax, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], 0
push eax
and ecx, 3
mov dword [esp + 0x24], 0
lea eax, [esp + 0x8c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0xff
lea eax, [esp + 0x18c]
push ebx
push eax
call fcn.004096dd
add esp, 0xc
lea eax, [esp + 0x188]
push 0x5c
push eax
call fcn.00404ab3
push 0x5c
mov byte [eax], 0
lea eax, [esp + 0x194]
push eax
call fcn.00404ab3
lea ecx, [esp + 0x198]
add esp, 0x10
dec ecx
mov byte [eax], 0
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401b70
mov eax, dword [str.dbin3]
mov dword [ecx], eax
mov ax, word [0x41d230]
mov word [ecx + 4], ax
mov al, byte [0x41d232]
mov byte [ecx + 6], al
lea ecx, [esp + 0x188]
dec ecx
nop dword [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401ba0
mov eax, dword [str.DfmScan1.exe]
mov edx, 6
mov dword [ecx], eax
xor edi, edi
mov eax, dword [0x41d238]
xorps xmm0, xmm0
mov dword [ecx + 4], eax
mov esi, 0x420372
mov eax, dword [0x41d23c]
mov dword [ecx + 8], eax
mov ax, word [0x41d240]
mov word [ecx + 0xc], ax
lea eax, [esp + 0x188]
sub edx, eax
movq qword [0x420fb0], xmm0
mov eax, 0x106
mov dword [esp + 0x14], edx
sub eax, dword [ebp + 0xc]
lea ecx, [esp + 0x88]
mov dword [esp + 0xc], eax
mov eax, 0x206
sub eax, ecx
mov dword [esp + 0x10], eax
nop dword [eax]
lea eax, [edi + 1]
add edx, esi
lea ebx, [esi - 2]
mov word [ebx], ax
lea ecx, [esp + 0x188]
mov eax, dword [ebp + 0x14]
mov word [esi], ax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401c30
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
add edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401c46
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x88]
add edx, esi
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x401c60
lea eax, [esp + 0x44]
mov dword [esi + 0x30a], 0x4213d8
push eax
push 4
push ebx
push 0x401f10
push 0
push 0
call fcn.0040964c
add esp, 0x18
mov dword [esp + edi*4 + 0x18], eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esp + edi*4 + 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esp + 0x14]
add esi, 0x310
inc edi
cmp esi, 0x420992
jl 0x401c10
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push dword [esp + esi*4 + 0x18]
call edi
inc esi
cmp esi, 2
jl 0x401cd7
mov eax, dword [0x41f8b4]
test eax, eax
je 0x401d02
cmp dword [0x41f8ac], 0
je 0x401cfc
call fcn.00401700
jmp 0x401d02
push eax
call fcn.00401240
push dword [0x4213d8]
lea eax, [esp + 0x4c]
mov dword [0x41f8b4], 0
xorps xmm0, xmm0
push str.OfxHz_d_0.dat
push eax
movups xmmword [0x41f8a0], xmm0
call fcn.00401770
lea edx, [esp + 0x54]
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x401d34
lea edi, [esp + 0x88]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401d45
mov ecx, edx
lea eax, [esp + 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
push eax
call fcn.00401360
cmp eax, 1
jl 0x401ee4
mov eax, dword [0x41f8b4]
mov dword [0x421524], eax
lea eax, [esp + 0x88]
push 0x5c
push eax
mov dword [0x41f8b4], 0
mov dword [0x41f8ac], 0
call fcn.00404ab3
mov byte [eax], 0
lea eax, [esp + 0x50]
push dword [0x4213dc]
push str.OfxHz_d_0.dat
push eax
call fcn.00401770
lea edx, [esp + 0x5c]
add esp, 0x14
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x401dc0
lea edi, [esp + 0x88]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401dd1
mov ecx, edx
lea eax, [esp + 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
push eax
call fcn.00401360
mov esi, eax
lea eax, [esp + 0x88]
push 0x5c
push eax
call fcn.00404ab3
add esp, 8
mov byte [eax], 0
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov al, byte [esp + ecx + 0x88]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x187], al
test al, al
jne 0x401e24
lea eax, [esp + 0x188]
push 0x5c
push eax
call fcn.00404ab3
add esp, 8
test eax, eax
je 0x401ee2
cmp byte [eax - 1], 0x3a
je 0x401ee2
lea ecx, [esp + 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401e67
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x400
jae 0x401efb
add ecx, 2
mov byte [esp + eax + 0x188], 0
cmp ecx, 0x400
jae 0x401efb
lea eax, [esp + 0x188]
mov byte [esp + ecx + 0x188], 0
mov dword [esp + 0x2c], eax
xorps xmm0, xmm0
mov eax, 0x194
movlpd qword [esp + 0x36], xmm0
mov word [esp + 0x34], ax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 3
mov dword [esp + 0x34], 0
mov dword [esp + 0x42], 0x41d244
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov eax, esi
mov ecx, dword [esp + 0x58c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402c53
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402fd4
int3