Function at 0x408020
Capabilities:
Create process on windows
Create thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x42d024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x105
call fcn.00414f9a
add esp, 4
mov dword [ebp - 0x54], eax
test eax, eax
je 0x408033
push 0x104
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40806e
mov eax, dword [0x42e1e8]
mov ecx, dword [eax]
mov edx, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x408064
call fcn.0040a810
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.00414909
add esp, 8
test eax, eax
je 0x4080bb
call fcn.0040a810
push eax
call fcn.004164a7
add esp, 4
call fcn.0040a810
push 0
push eax
call fcn.0040a180
call fcn.0040a810
push eax
call fcn.0040a440
add esp, 0xc
call fcn.0040a810
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.0040a810
push eax
call fcn.004164d9
add esp, 4
call fcn.0040ac70
mov ecx, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4080f0
test dl, dl
je 0x4080ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4080f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4080d0
xor eax, eax
jmp 0x4080f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4081ac
call fcn.0040ac70
lea edx, [ebp - 0x40]
push edx
push eax
call fcn.00414909
add esp, 8
test eax, eax
jne 0x408121
call fcn.0040ac70
push eax
call fcn.00415257
add esp, 4
push 0x2b
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0xac]
add esp, 4
mov eax, edi
call fcn.004033a0
test al, al
je 0x40816c
push 0x2b
call fcn.004051a0
mov ecx, dword [0x42f218]
mov esi, dword [ecx + 0xac]
add esp, 4
push 1
call fcn.0040ac70
push eax
push esi
mov eax, edi
call fcn.004038a0
add esp, 0xc
jmp 0x40817c
call fcn.0040ac70
push eax
mov eax, edi
call fcn.00401090
add esp, 4
call fcn.0040ac70
mov esi, eax
push 0x427570
push esi
call fcn.00414000
add esp, 8
test eax, eax
je 0x40819e
push esi
call fcn.00402c90
add esp, 4
call fcn.0040ac70
push eax
call fcn.0040a440
add esp, 4
call fcn.0040a550
cmp eax, 2
je 0x4081f0
call fcn.00404870
push 0
push 0
push 0
cmp eax, 0x3c
jl 0x4081dc
push 0x409420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42f470], eax
jmp 0x4081f0
push 0x409180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42f46c], eax
call fcn.0040a550
cmp eax, 1
jne 0x40828a
call fcn.0040ac70
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408206
sub eax, edx
lea ebx, [eax + 0x11]
push ebx
call fcn.00414f9a
mov esi, eax
add esp, 4
test esi, esi
je 0x408212
push 0x7e
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x1f8]
add esp, 4
push eax
call fcn.0040ac70
push eax
push str.__s___s
push esi
call fcn.0041512c
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00418380
add esp, 0x1c
xor eax, eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x50]
push edx
push eax
push eax
push 0x100
push eax
push eax
push eax
push esi
push eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
call fcn.00414f60
add esp, 4
call fcn.0040ac70
mov ecx, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4082b1
test dl, dl
je 0x4082ad
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4082b1
add ecx, 2
add eax, 2
test dl, dl
jne 0x408291
xor eax, eax
jmp 0x4082b6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408400
call fcn.0040ac70
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.00414909
add esp, 8
test eax, eax
jne 0x408400
push 0x42f4f4
call fcn.00403be0
mov esi, dword [0x42f4f4]
add esp, 4
test esi, esi
je 0x4082fe
call fcn.004020a0
mov dword [0x42f4f4], 0
mov esi, 0x42f4f4
call fcn.00403ce0
call fcn.0040ac70
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408310
sub eax, edx
lea esi, [eax + 0x11]
lea esp, [esp]
push esi
call fcn.00414f9a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408320
call fcn.0040ac70
push eax
push str.__s_
push ebx
call fcn.0041512c
add esp, 0xc
call fcn.0040a550
test eax, eax
jne 0x4083a9
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408350
mov dx, word [0x42a6a0]
push 0x7e
mov word [edi], dx
call fcn.004051a0
mov eax, dword [0x42f218]
mov eax, dword [eax + 0x1f8]
add esp, 4
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408380
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408390
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]
mov edi, dword [ebp - 0x54]
push 0x44
lea ecx, [ebp - 0x50]
push 0
push ecx
call fcn.00418380
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x100
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
call fcn.00414f60
add esp, 4
push edi
call fcn.00414f60
add esp, 4
push 0
call fcn.00415639
push edi
call fcn.00414f60
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f0d
mov esp, ebp
pop ebp
ret