Function at 0x403320
Capabilities:
Check for time delay via gettickcount
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4872f9
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x59134c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x144], esi
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 4], edi
jae 0x403367
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ecx
push eax
call fcn.0044cd30
push 0x103
lea edx, [ebp - 0x113]
push edi
push edx
mov byte [ebp - 0x114], 0
call fcn.0046bb90
add esp, 0x14
lea eax, [ebp - 0x114]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x5912cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5912cc
call eax
add eax, 0x10
mov dword [ebp - 0x134], eax
push edi
mov byte [ebp - 4], 1
call fcn.0046c3c2
push eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x134]
push str._sFFPlaySetup__d.exe
push edx
call fcn.00402d20
add esp, 0x14
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], edi
mov eax, dword [ebp - 0x134]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x403598
call fcn.00401490
cmp eax, edi
jl 0x4035a5
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
xor edx, edx
mov ecx, 0x3e8
div ecx
mov esi, edx
call ebx
xor edx, edx
mov ecx, 0xa
div ecx
xor ebx, ebx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x138], edx
mov byte [ebp - 4], 3
test esi, esi
jle 0x40347e
mov al, byte [ebp - 0x138]
imul bl
movzx edx, al
push edx
push 1
lea ecx, [ebp - 0x130]
call fcn.004028d0
inc ebx
cmp ebx, esi
jl 0x403460
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp + 8]
call fcn.00402c10
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x40349d
lea eax, [ebp + 8]
mov edx, dword [ebp + 0x18]
push 0
lea ecx, [ebp - 0x138]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4034bb
call fcn.00401490
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4034d0
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x140], edi
mov esi, dword [ebp - 0x134]
lea eax, [ebp - 0x14c]
push eax
push 2
mov dword [ebp - 0x14c], 0x489488
mov dword [ebp - 0x148], esi
call fcn.0041b360
add esp, 8
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x11c], 0x10
jb 0x40353b
mov eax, dword [ebp - 0x130]
push eax
call fcn.0046afbc
add esp, 4
test edi, edi
je 0x403542
push edi
call ebx
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403568
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x1c], 0x10
jb 0x40357a
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046afbc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046afc7
mov esp, ebp
pop ebp
ret 0x1c
mov edi, eax
mov dword [ebp - 0x140], edi
jmp 0x40341c
mov ecx, dword [esi + 4]
push 0x489440
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x403542