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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
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 - 0x5c], eax
test eax, eax
je 0x407b63
push 0x104
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407b9e
mov eax, dword [0x42e1e8]
mov ecx, dword [eax]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x407b94
push 0x2b
call fcn.004051a0
mov ecx, dword [0x42f218]
mov ecx, dword [ecx + 0xac]
add esp, 4
mov eax, esi
call fcn.004033a0
test al, al
je 0x408000
mov edi, dword [ebp - 0x5c]
mov eax, edi
lea edx, [eax + 1]
jmp 0x407bd0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407bd0
sub eax, edx
lea esi, [eax + 0x15]
lea esp, [esp]
push esi
call fcn.00414f9a
add esp, 4
mov dword [ebp - 0x58], eax
test eax, eax
je 0x407be0
mov ebx, eax
mov edx, ebx
mov dword [ebp - 0x60], ebx
mov eax, edi
sub edx, edi
jmp 0x407c00
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407c00
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c10
sub eax, edx
cmp eax, 4
jb 0x407c22
mov byte [ebx + eax - 4], cl
push 0x2c
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0xb0]
add esp, 4
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c40
sub eax, edx
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407c50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x40]
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00414909
add esp, 8
test eax, eax
jne 0x407dce
push 0x427570
push ebx
call fcn.00414000
mov esi, eax
add esp, 8
test esi, esi
je 0x407cb6
push 2
push 0
push esi
call fcn.004146d2
add esp, 0xc
push esi
call fcn.004145e3
add esp, 4
push esi
mov edi, eax
call fcn.004147bb
add esp, 4
mov esi, edi
jmp 0x407cb8
xor esi, esi
push 0x2b
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ebp - 0x5c]
mov ebx, dword [ecx + 0xac]
add esp, 4
push edx
call fcn.00403500
add esp, 4
cmp esi, eax
je 0x407e00
mov esi, dword [ebp - 0x58]
push esi
call fcn.00415257
add esp, 4
test eax, eax
je 0x407da1
push 4
call fcn.004051a0
mov eax, dword [0x42f218]
mov eax, dword [eax + 0x10]
add esp, 4
push eax
call fcn.00415e1b
add esp, 4
mov ebx, eax
test eax, eax
jne 0x407d1c
mov ebx, 0x4275bc
push 0x11
call fcn.004051a0
mov ecx, dword [0x42f218]
mov eax, dword [ecx + 0x44]
add esp, 4
push 2
push eax
xor eax, eax
call fcn.004043d0
push esi
mov edi, eax
call fcn.00414f60
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407d50
mov ecx, edi
sub eax, edx
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407d60
sub ecx, esi
lea esi, [ecx + eax + 0x10]
lea ecx, [ecx]
push esi
call fcn.00414f9a
add esp, 4
test eax, eax
je 0x407d70
push edi
push ebx
mov esi, eax
push 0x42a684
push eax
mov dword [ebp - 0x60], esi
call fcn.0041512c
add esp, 0x10
test edi, edi
je 0x407da4
push edi
call fcn.00414f60
add esp, 4
jmp 0x407da4
mov esi, dword [ebp - 0x60]
push 0x2b
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0xac]
add esp, 4
push 0
push esi
push eax
mov eax, dword [ebp - 0x5c]
call fcn.004038a0
add esp, 0xc
push 6
push esi
jmp 0x407df6
push 0x2b
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0xac]
mov eax, dword [ebp - 0x5c]
add esp, 4
push 0
push ebx
push edx
call fcn.004038a0
add esp, 0xc
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esp, [esp]
push 8
call fcn.00414f9a
mov esi, eax
add esp, 4
test esi, esi
je 0x407e00
push 1
call fcn.00414f9a
add esp, 4
test eax, eax
je 0x407e10
mov dword [esi], eax
mov byte [eax], 0
push 0x42a698
mov dword [esi + 4], 0
call fcn.00404350
mov eax, dword [ebp - 0x60]
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407e40
mov ecx, dword [esi]
sub eax, edx
mov edi, eax
mov eax, dword [esi + 4]
lea ebx, [edi + eax + 1]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push ebx
push edx
call fcn.0041507f
add esp, 8
test eax, eax
je 0x407e57
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi]
cmp eax, ecx
jae 0x407e92
mov ecx, dword [ebp - 0x60]
sub ecx, eax
lea esp, [esp]
mov edx, dword [esi]
mov bl, byte [ecx + eax]
mov byte [eax + edx], bl
mov edx, dword [esi + 4]
inc eax
add edx, edi
cmp eax, edx
jb 0x407e80
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0x42a69c
mov byte [eax + ecx], 0
call fcn.00404350
mov eax, 1
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [0x42e1e4], eax
jle 0x407f91
nop
mov edx, dword [0x42e1e8]
mov edi, dword [ebp - 0x58]
mov eax, dword [edx + edi*4]
push 0x42a6a0
push eax
mov byte [ebp - 0x51], 0
call fcn.004151b0
add esp, 8
test eax, eax
je 0x407ef3
push 0x42a698
mov byte [ebp - 0x51], 1
call fcn.00404350
add esp, 4
mov eax, dword [0x42e1e8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x64], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f01
mov ecx, dword [esi + 4]
sub eax, edx
mov edx, dword [esi]
mov edi, eax
lea ebx, [edi + ecx + 1]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push ebx
push eax
call fcn.0041507f
add esp, 8
test eax, eax
je 0x407f18
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi]
cmp eax, ecx
jae 0x407f52
mov ecx, dword [ebp - 0x64]
sub ecx, eax
lea ebx, [ebx]
mov edx, dword [esi]
mov bl, byte [ecx + eax]
mov byte [eax + edx], bl
mov edx, dword [esi + 4]
inc eax
add edx, edi
cmp eax, edx
jb 0x407f40
add dword [esi + 4], edi
cmp byte [ebp - 0x51], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov byte [eax + ecx], 0
je 0x407f71
push 0x42a698
call fcn.00404350
add esp, 4
push 0x42a6a0
call fcn.00404350
mov eax, dword [ebp - 0x58]
inc eax
add esp, 4
mov dword [ebp - 0x58], eax
cmp eax, dword [0x42e1e4]
jl 0x407ec0
mov edi, dword [esi]
push 0x44
lea edx, [ebp - 0x50]
push 0
push edx
call fcn.00418380
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0
push 0x100
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esi]
mov dword [esi + 4], 0
test eax, eax
je 0x407fe7
push eax
call fcn.00414f60
add esp, 4
push esi
call fcn.00414f60
mov eax, dword [ebp - 0x60]
add esp, 4
test eax, eax
je 0x408000
push eax
call fcn.00414f60
add esp, 4
mov edx, dword [ebp - 0x5c]
push edx
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