Function at 0x401f00
Capabilities:
Check if file exists
Create directory
Create thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x45066c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x453434]
cmp byte [eax], 0
push esi
push edi
je 0x401f23
mov byte [eax + 0x82], 0
lea esi, [eax + 0x38]
mov eax, dword [esi]
push 0x445d10
push eax
call fcn.0042449d
add esp, 8
test eax, eax
je 0x401f41
sub eax, dword [esi]
cmp eax, 1
je 0x401f70
lea ecx, [ebp - 0x50]
call fcn.004012c0
mov eax, dword [eax]
mov esi, dword [0x453434]
push eax
add esi, 0x38
or eax, 0xffffffff
call fcn.004137c0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
cmp eax, ecx
je 0x401f70
push eax
call fcn.00423ad1
add esp, 4
mov edx, dword [0x453434]
mov eax, dword [edx + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
call edi
test eax, eax
je 0x401f9c
mov eax, dword [0x453434]
mov ecx, dword [eax + 0x38]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [0x453434]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401fed
lea ecx, [ebp - 0x50]
call fcn.004012c0
mov eax, dword [eax]
mov esi, dword [0x453434]
push eax
add esi, 0x38
or eax, 0xffffffff
call fcn.004137c0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
cmp eax, ecx
je 0x401fdf
push eax
call fcn.00423ad1
add esp, 4
mov edx, dword [0x453434]
mov eax, dword [edx + 0x38]
push 0
push eax
call edi
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [0x453434]
mov edx, dword [ecx + 0x24]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x4c
call fcn.00423460
add esp, 4
test eax, eax
je 0x40201f
lea ecx, [eax + 8]
mov dword [eax + 4], ecx
mov byte [ecx], 0
jmp 0x402021
xor eax, eax
mov ecx, dword [0x453434]
mov edx, dword [ecx + 0x24]
mov dword [ecx + 0x8c], eax
mov dword [eax], edx
push 0x445828
lea eax, [ecx + 0x38]
call fcn.004136c0
lea ecx, [ebp - 0x50]
call fcn.004017c0
mov eax, dword [eax]
push eax
mov eax, dword [0x453434]
add eax, 0x38
call fcn.004136c0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
cmp eax, ecx
je 0x40206a
push eax
call fcn.00423ad1
add esp, 4
mov eax, dword [0x453434]
mov edx, dword [eax + 0x38]
mov esi, dword [eax + 0x8c]
push edx
add esi, 4
or eax, 0xffffffff
call fcn.004137c0
push 0x18
call fcn.00423460
add esp, 4
test eax, eax
je 0x4020a9
mov word [eax + 8], 0
mov dword [eax], vtable.ThreadCopy.0
mov dword [eax + 0x14], 0
mov esi, eax
jmp 0x4020ab
xor esi, esi
mov eax, dword [0x453434]
mov dword [eax + 0x88], esi
cmp byte [esi + 8], 0
jne 0x4020f5
mov eax, dword [eax + 0x8c]
lea ecx, [esi + 0x10]
push ecx
push 0
push esi
push 0x4040f0
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.004235a5
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x4020f5
cmp byte [esi + 9], 0
je 0x4020f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 8], 1
mov edx, dword [0x453434]
mov eax, dword [edx + 0x24]
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042304b
mov esp, ebp
pop ebp
ret