Function at 0x502238
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x5021f0
push ecx
xor eax, eax
push ebp
push 0x50257c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x502590
call fcn.00501c14
test al, al
je 0x50221e
mov eax, 0x502590
call fcn.00501ef8
lea edx, [ebp - 0x28]
mov eax, dword [0x50ec5c]
mov eax, dword [eax]
call fcn.00470794
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 4]
call fcn.00409f2c
push 0
push 0x50259c
call sub.kernel32.dll_WinExec
push 0
lea eax, [ebp - 0x2c]
mov ecx, 0x5025bc
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x2c]
call fcn.00404d84
push eax
call sub.kernel32.dll_WinExec
push 0
lea eax, [ebp - 0x30]
mov ecx, 0x5025d8
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x30]
call fcn.00404d84
push eax
call sub.kernel32.dll_WinExec
call fcn.00502114
lea eax, [ebp - 0x34]
mov ecx, 0x5025f8
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x34]
call fcn.00409e94
lea eax, [ebp - 0x38]
mov ecx, 0x502610
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x38]
call fcn.00409e94
lea eax, [ebp - 0x3c]
mov ecx, 0x502620
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x3c]
call fcn.00409e94
lea eax, [ebp - 0x40]
mov ecx, 0x502638
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x40]
call fcn.00409e94
lea eax, [ebp - 0x44]
mov ecx, 0x50264c
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x44]
call fcn.00409e94
lea eax, [ebp - 0x48]
mov ecx, 0x502660
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x48]
call fcn.00409e94
lea eax, [ebp - 0x4c]
mov ecx, 0x502674
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x4c]
call fcn.00409e94
lea eax, [ebp - 0x50]
mov ecx, 0x502688
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x50]
call fcn.00409e94
lea eax, [ebp - 0x54]
mov ecx, 0x5026a0
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x54]
call fcn.00409e94
lea eax, [ebp - 0x58]
mov ecx, 0x5026b8
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x58]
call fcn.00409e94
lea eax, [ebp - 0x5c]
mov ecx, 0x5026cc
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x5c]
call fcn.00409e94
lea eax, [ebp - 0x60]
mov ecx, 0x5026e8
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x60]
call fcn.00409e94
lea eax, [ebp - 0x64]
mov ecx, 0x502700
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x64]
call fcn.00409e94
lea eax, [ebp - 0x68]
mov ecx, 0x502590
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x68]
call fcn.00409e94
lea eax, [ebp - 0x6c]
mov ecx, 0x502714
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x6c]
call fcn.00409e94
lea eax, [ebp - 0x70]
mov ecx, 0x502728
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x70]
call fcn.00409e94
lea eax, [ebp - 0x74]
mov ecx, 0x50273c
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x74]
call fcn.00409e94
lea eax, [ebp - 0x78]
mov ecx, 0x502750
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x78]
call fcn.00409e94
lea eax, [ebp - 0x7c]
mov ecx, 0x502768
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x7c]
call fcn.00409e94
lea eax, [ebp - 0x80]
mov ecx, 0x502780
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x80]
call fcn.00409e94
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.004031e0
mov eax, dword [0x50ec5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], 3
lea eax, [ebp - 0x84]
mov ecx, 0x502794
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x84]
call fcn.00404d84
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x12], 0x50
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
push 0xbb8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x88]
mov ecx, 0x5027a0
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x88]
call fcn.00409e94
lea eax, [ebp - 0x8c]
mov ecx, 0x5027b4
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x8c]
call fcn.00409e94
lea eax, [ebp - 0x90]
mov ecx, 0x5027cc
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x90]
call fcn.00409e94
lea eax, [ebp - 0x94]
mov ecx, 0x5027e0
mov edx, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 0x94]
call fcn.00409e94
mov eax, 0x5027f8
call fcn.00501c14
test al, al
je 0x502556
mov eax, 0x5027f8
call fcn.00501d88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502583
lea eax, [ebp - 0x94]
mov edx, 0x1c
call fcn.004048e8
lea eax, [ebp - 4]
call fcn.004048c4
ret