Function at 0x401000
Capabilities:
Create process on windows
Delete file
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x46c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x488]
cmp byte [edi], 0x20
jne 0x40101e
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
je 0x401016
mov al, byte [edi]
mov ebp, edi
test al, al
mov dword [esp + 0x10], ebp
je 0x40103a
cmp al, 0x20
je 0x401036
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x40102a
mov dword [esp + 0x10], ebp
cmp byte [ebp], 0
je 0x401049
mov byte [ebp], 0
inc ebp
mov dword [esp + 0x10], ebp
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea eax, [esp + 0x27c]
push str.SoftwareGlobalLinkGame_s
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x278]
push ecx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401298
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x174]
push 0x104
push eax
push str.Path
push ecx
call fcn.004012b0
add esp, 0x10
test eax, eax
jne 0x4010bf
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x46c
ret 0x10
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x174]
push edi
push ecx
lea edx, [esp + 0x78]
push str._s_s.dat
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x70]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], 1
jne 0x40111d
lea ecx, [esp + 0x174]
push edi
push ecx
lea edx, [esp + 0x78]
push str._s_s.exe
push edx
call ebx
add esp, 0x10
xor esi, esi
jmp 0x4011e0
mov ebp, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push 0
push esi
call ebp
mov ebx, eax
push ebx
call fcn.004015a2
mov edi, eax
add esp, 4
test edi, edi
jne 0x401151
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x46c
ret 0x10
push 0
push 0
push esi
call ebp
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll__lread]
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
push esi
call ebp
mov ecx, ebx
mov eax, edi
shr ecx, 2
je 0x401184
mov edx, dword [eax]
add eax, 4
xor edx, 0x12345678
dec ecx
mov dword [eax - 4], edx
jne 0x401173
lea eax, [esp + 0x70]
push eax
call fcn.004012e0
add esp, 4
lea ecx, [esp + 0x70]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4011bd
push edi
call fcn.00401539
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x46c
ret 0x10
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call ebp
push edi
call fcn.00401539
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
add esp, 4
movsx edx, byte [esp + 0x174]
push edx
call fcn.0040146d
sub eax, 0x40
push eax
call fcn.00401416
add esp, 8
test eax, eax
jne 0x40120e
lea eax, [esp + 0x174]
push eax
call fcn.00401390
add esp, 4
lea ecx, [esp + 0x70]
push ebp
push ecx
lea edx, [esp + 0x380]
push str._s__s
push edx
call ebx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x394]
push 0
push edx
push 0
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x80], 0x41
mov word [esp + 0x84], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x401298
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x46c
ret 0x10