Function at 0x412890
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
sub esp, 0x428
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
mov ebx, dword [esp + 0x430]
mov eax, ebx
imul eax, eax, 0x1008
add eax, dword [0x464c00]
push ebp
push esi
push edi
lea edi, [eax + 0xefc]
xor ebp, ebp
cmp byte [edi], 0
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
jne 0x412ab5
lea eax, [esp + 0x130]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push ebp
push 0x4539bc
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [0x464bfc]
lea ebx, [ebx + ebx*2]
shl ebx, 5
cmp byte [ebx + edx + 0x54], 0
je 0x412961
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x412914
mov ax, word [0x4539b8]
mov word [edi], ax
mov ecx, dword [0x464bfc]
lea eax, [ebx + ecx + 0x54]
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412933
mov edi, dword [esp + 0x14]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x412945
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 [esp + 0x14]
push 0x1000
push edi
call fcn.0040a330
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x18], esi
jge 0x412983
mov eax, 1
jmp 0x412a1f
push 0x10000
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x4129a7
mov dword [esp + 0x10], 1
jmp 0x4129dd
mov eax, dword [0x464bfc]
mov edx, dword [ebx + eax + 0x4c]
mov edi, dword [ebx + eax + 0x50]
mov eax, dword [0x460004]
push 0
push edx
push eax
call fcn.0040a3a0
mov ecx, dword [0x464bfc]
add esp, 0xc
cmp eax, dword [ebx + ecx + 0x4c]
je 0x412a38
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x14]
cmp esi, 0xffffffff
jle 0x4129eb
push esi
call fcn.0040a380
add esp, 4
test ebp, ebp
je 0x412a09
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x412a1d
cmp byte [edi], 0
je 0x412a1d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b76b
add esp, 0x428
ret
test edi, edi
je 0x412a7f
lea esp, [esp]
cmp edi, 0x10000
mov esi, edi
jl 0x412a4f
mov esi, 0x10000
mov edx, dword [0x460004]
push esi
push ebp
push edx
call fcn.0040a3c0
add esp, 0xc
cmp eax, esi
jne 0x412a9d
mov eax, dword [esp + 0x18]
push esi
push ebp
push eax
call fcn.0040a3f0
add esp, 0xc
cmp eax, esi
jne 0x412a9d
sub edi, esi
jne 0x412a40
mov esi, dword [esp + 0x18]
push esi
call fcn.0040a380
mov edi, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x412aae
mov dword [esp + 0x10], 1
jmp 0x4129eb
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 1
jmp 0x4129d9
mov ebx, dword [esp + 0x43c]
mov edx, dword [0x464bfc]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebx + ebx*2]
shl ecx, 5
cmp byte [ecx + edx + 0x54], 0
lea eax, [ecx + edx + 0x54]
je 0x412ae4
push eax
lea eax, [esp + 0x20]
push 0x4539b4
push eax
call esi
add esp, 0xc
jmp 0x412af8
mov ecx, dword [str..htm]
mov dl, byte [0x4537e8]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x20], dl
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040dc90
add esp, 8
test eax, eax
je 0x412b1b
mov dword [esp + 0x10], 1
jmp 0x4129eb
push edi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x23c]
push str._s__s
push eax
call esi
add esp, 0x10
push 1
lea ecx, [esp + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x4129eb
push 0x7a
call fcn.0040ab70
mov dword [esp + 0x14], 1
jmp 0x4129e8