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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
cmp byte [0x443a59], 0
jne 0x40733f
call fcn.004060e0
mov byte [0x443a59], 1
mov ecx, dword [0x443b0c]
mov eax, dword [ecx + 0x98]
push eax
lea eax, [ebp - 0x110]
call fcn.00404ca0
add esp, 4
test al, al
je 0x4076a2
push str.TEMP
call fcn.0042097e
mov esi, eax
add esp, 4
mov eax, str..exe
mov dword [ebp - 0x114], esi
call fcn.004020f0
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407390
sub eax, edx
mov edi, eax
cmp byte [0x443a59], cl
jne 0x4073af
call fcn.004060e0
mov byte [0x443a59], 1
mov edx, dword [0x443b0c]
mov eax, dword [edx + 0x9c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4073c0
sub eax, edx
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4073d0
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x118]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4073e4
sub eax, esi
add eax, edx
add eax, ebx
lea eax, [eax + edi + 8]
push eax
call fcn.0041fbf7
add esp, 4
cmp byte [0x443a59], 0
mov ebx, eax
mov dword [ebp - 0x11c], ebx
jne 0x40741b
call fcn.004060e0
mov byte [0x443a59], 1
mov ecx, dword [0x443b0c]
mov edx, dword [ecx + 0x9c]
push edx
lea eax, [ebp - 0x110]
push eax
push str._s__s.exe
push ebx
call fcn.00420835
push 0x43ca7c
push ebx
call fcn.004218f3
add esp, 0x18
test eax, eax
jne 0x407475
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40747e
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
push ecx
push edx
push 0x43b244
push ebx
call fcn.00420835
add esp, 0x10
jmp 0x40747e
push eax
call fcn.00422275
add esp, 4
cmp byte [0x443a59], 0
jne 0x407493
call fcn.004060e0
mov byte [0x443a59], 1
mov ecx, dword [0x443b0c]
mov ecx, dword [ecx + 0x98]
push 0
push ebx
lea eax, [ebp - 0x110]
call fcn.00404f70
add esp, 8
push 6
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 1
call fcn.00422399
add esp, 4
push 2
push eax
call fcn.0042242d
mov ecx, ebx
add esp, 8
mov word [eax], 0x22
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4074d8
sub ecx, esi
lea esi, [ecx + 1]
lea edx, [esi + 1]
push edx
push eax
call fcn.0042242d
mov ecx, 1
add esp, 8
cmp esi, ecx
jle 0x40750c
lea ebx, [ebx]
mov dl, byte [ebx + ecx - 1]
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x407500
lea ecx, [esi + 3]
push ecx
push eax
mov byte [esi + eax], 0
call fcn.0042242d
lea ecx, [esi + 2]
add esp, 8
mov edi, eax
mov eax, esi
cmp esi, ecx
jge 0x407551
mov edx, 0x43ca80
sub edx, esi
mov dword [ebp - 0x114], edx
jmp 0x407546
mov edx, dword [ebp - 0x114]
mov dl, byte [edx + eax]
mov byte [eax + edi], dl
inc eax
cmp eax, ecx
jl 0x407540
mov eax, 1
mov esi, ecx
mov byte [esi + edi], 0
mov dword [ebp - 0x114], eax
cmp dword [0x442cb0], eax
jle 0x407634
lea eax, [esi + 2]
push eax
push edi
call fcn.0042242d
lea edi, [esi + 1]
add esp, 8
mov ecx, esi
cmp esi, edi
jge 0x40759b
mov edx, 0x43b62c
sub edx, esi
jmp 0x407590
mov bl, byte [edx + ecx]
mov byte [ecx + eax], bl
inc ecx
cmp ecx, edi
jl 0x407590
mov ecx, dword [0x442cb4]
mov edx, dword [ebp - 0x114]
mov byte [edi + eax], 0
mov ebx, dword [ecx + edx*4]
mov ecx, ebx
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4075b3
sub ecx, esi
lea esi, [ecx + edi]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0042242d
add esp, 8
mov ecx, edi
cmp edi, esi
jge 0x4075e1
mov edx, ebx
sub edx, edi
mov bl, byte [edx + ecx]
mov byte [ecx + eax], bl
inc ecx
cmp ecx, esi
jl 0x4075d6
lea edx, [esi + 3]
push edx
push eax
mov byte [esi + eax], 0
call fcn.0042242d
lea ecx, [esi + 2]
add esp, 8
mov edi, eax
mov eax, esi
cmp esi, ecx
jge 0x40760f
mov edx, 0x43ca80
sub edx, esi
mov bl, byte [edx + eax]
mov byte [eax + edi], bl
inc eax
cmp eax, ecx
jl 0x407604
mov eax, dword [ebp - 0x114]
inc eax
mov esi, ecx
mov byte [esi + edi], 0
mov dword [ebp - 0x114], eax
cmp eax, dword [0x442cb0]
jl 0x40756e
mov ebx, dword [ebp - 0x11c]
push 0x44
lea eax, [ebp - 0x178]
push 0
push eax
call fcn.00428e90
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x178]
push edx
push eax
push eax
push 0x100
push eax
push eax
push eax
push edi
push eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov eax, dword [ebp - 0x118]
push eax
call fcn.004208b9
add esp, 4
push ebx
call fcn.004208b9
add esp, 4
push edi
call fcn.00421071
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
mov esp, ebp
pop ebp
ret