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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x449334]
cmp byte [eax], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x402058
mov word [eax + 0x82], 0x100
lea esi, [eax + 0x38]
mov eax, dword [esi]
push 0x43cd10
push eax
call fcn.0041e56d
add esp, 8
test eax, eax
je 0x402076
sub eax, dword [esi]
cmp eax, 1
je 0x4020a5
lea ecx, [ebp - 0x50]
call fcn.00401320
mov eax, dword [eax]
mov esi, dword [0x449334]
push eax
add esi, 0x38
or eax, 0xffffffff
call fcn.004139f0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
cmp eax, ecx
je 0x4020a5
push eax
call fcn.0041dba1
add esp, 4
mov edx, dword [0x449334]
mov eax, dword [edx + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
call edi
test eax, eax
je 0x4020d1
mov eax, dword [0x449334]
mov ecx, dword [eax + 0x38]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [0x449334]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402122
lea ecx, [ebp - 0x50]
call fcn.00401320
mov eax, dword [eax]
mov esi, dword [0x449334]
push eax
add esi, 0x38
or eax, 0xffffffff
call fcn.004139f0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
cmp eax, ecx
je 0x402114
push eax
call fcn.0041dba1
add esp, 4
mov edx, dword [0x449334]
mov eax, dword [edx + 0x38]
push 0
push eax
call edi
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [0x449334]
mov edx, dword [ecx + 0x24]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x4c
call fcn.0041d530
add esp, 4
test eax, eax
je 0x402154
lea ecx, [eax + 8]
mov dword [eax + 4], ecx
mov byte [ecx], 0
jmp 0x402156
xor eax, eax
mov ecx, dword [0x449334]
mov edx, dword [ecx + 0x24]
mov dword [ecx + 0x8c], eax
mov dword [eax], edx
push 0x43c824
lea eax, [ecx + 0x38]
call fcn.004138f0
lea ebx, [ebp - 0x50]
call fcn.004018f0
mov eax, dword [eax]
push eax
mov eax, dword [0x449334]
add eax, 0x38
call fcn.004138f0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
cmp eax, ecx
je 0x40219f
push eax
call fcn.0041dba1
add esp, 4
mov eax, dword [0x449334]
mov edx, dword [eax + 0x38]
mov esi, dword [eax + 0x8c]
push edx
add esi, 4
or eax, 0xffffffff
call fcn.004139f0
push 0x18
call fcn.0041d530
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4021da
mov word [eax + 8], bx
mov dword [eax], vtable.ThreadCopy.0
mov dword [eax + 0x14], ebx
mov esi, eax
jmp 0x4021dc
xor esi, esi
mov eax, dword [0x449334]
mov dword [eax + 0x88], esi
cmp byte [esi + 8], bl
jne 0x402221
mov eax, dword [eax + 0x8c]
lea ecx, [esi + 0x10]
push ecx
push ebx
push esi
push 0x404710
push ebx
push ebx
mov dword [esi + 0xc], eax
call fcn.0041d675
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, ebx
je 0x402221
cmp byte [esi + 9], bl
je 0x40221d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 8], 1
mov edx, dword [0x449334]
mov eax, dword [edx + 0x24]
push 0x43
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d129
mov esp, ebp
pop ebp
ret