Function at 0x408aa0
Capabilities:
Check for time delay via gettickcount
Get common file path
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41dee8
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x425160]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x425160]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
fldz
xor edi, edi
mov dword [esp + 0x2c], edi
fst dword [esp + 0x20]
mov dword [esp + 0x6c], edi
fst dword [esp + 0x68]
mov dword [esp + 0x60], edi
mov dword [esp + 0x50], edi
fst dword [esp + 0x28]
fldz
xor esi, esi
fstp qword [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x98], 0xf
fstp dword [esp + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x94], edi
mov byte [esp + 0x84], bl
push 0x118
mov dword [esp + 0xf4], edi
call fcn.0040ab79
push eax
mov dword [esp + 0x74], eax
call fcn.00403150
add esp, 8
lea ecx, [ecx]
push edi
call fcn.0040a9da
add esp, 4
cmp edx, ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
jg 0x408b73
jl 0x408b6b
cmp eax, esi
jae 0x408b73
xor esi, esi
mov dword [esp + 0x3c], esi
xor ebx, ebx
mov ecx, eax
sub ecx, esi
mov esi, edx
sbb esi, ebx
mov dword [esp + 0x18], esi
js 0x409611
jg 0x408b93
cmp ecx, 0x708
jbe 0x409611
mov edi, eax
shr edi, 9
mov dword [esp + 0x3c], eax
mov ebx, edx
lea eax, [edi + 0x55]
push 0x408
push 0x4232b8
mov dword [esp + 0x48], ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x78], eax
call fcn.00401140
mov ecx, dword [0x424d9c]
sub ecx, 0x6b224478
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
push 0xd
push 0x424f1c
mov dword [esp + 0x74], eax
fadd dword [0x424e7c]
fstp dword [0x424e7c]
dec dword [0x424d9c]
call fcn.00401140
fld dword [0x424998]
fcomp qword [0x41e988]
mov esi, eax
add esp, 0x10
mov dword [esp + 0x4c], esi
fnstsw ax
test ah, 0x41
jp 0x408caf
fld dword [esp + 0x30]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x30]
fld dword [0x4248f8]
fsub st(1)
fstp dword [0x4248f8]
fld dword [0x4248f8]
fld dword [esp + 0x30]
fsub qword [0x41e980]
fsub qword [0x41e978]
fld dword [esp + 0x28]
faddp st(2)
fcompp
fnstsw ax
fld dword [esp + 0x28]
fadd st(1)
fstp dword [esp + 0x28]
test ah, 0x41
jp 0x408c99
fld qword [0x4247c8]
fsub qword [0x41e970]
fsub dword [esp + 0x20]
fmul qword [0x4249c8]
fstp qword [0x4249c8]
fld dword [esp + 0x20]
fsub st(1)
fstp dword [esp + 0x20]
fadd qword [0x4247c8]
fstp qword [0x4247c8]
jmp 0x408caf
movzx edx, word [0x424720]
fstp st(0)
add edx, 0x4cb97649
mov word [0x424720], dx
push 0xaf1
push 0x423730
call fcn.00401140
inc dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
push 0x31e
push 0x422370
fadd dword [esp + 0x30]
fadd qword [str.W_vt]
fstp dword [0x4249a0]
call fcn.00401140
dec dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, 0xfb6f7375
sub edx, ecx
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov dword [esp + 0x44], eax
add esp, 0x10
fadd dword [0x424a68]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 5
jp 0x408d3c
fld qword [0x424958]
fadd qword [0x41e968]
fstp qword [0x424958]
cmp edi, dword [esp + 0x70]
je 0x409251
mov ecx, dword [0x426980]
push 0
push ecx
call fcn.00401440
add esp, 8
test eax, eax
jne 0x408d70
mov edx, dword [0x426988]
mov eax, dword [0x4264c4]
push edx
push eax
call fcn.00401220
add esp, 8
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.00402a70
mov edx, dword [esp + 0x70]
add edx, 0x126bfb6d
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
push 0x8b
push 0x424ac8
fstp qword [0x424760]
call fcn.00401140
mov ebx, eax
mov eax, dword [esp + 0x64]
add esp, 0x18
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408dc0
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408dd0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x2710
mov ecx, eax
push 0
and ecx, 3
lea eax, [esp + 0x88]
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa8]
push ebx
push ecx
call fcn.004081e0
mov edx, dword [esp + 0x64]
fldz
mov eax, 0xf18031ef
sub eax, edx
add eax, dword [0x424810]
push 0x8b
mov dword [0x424810], eax
push 0
fst dword [esp + 0x30]
push ebx
fstp dword [esp + 0x34]
call fcn.0040aab0
push ebx
call fcn.0040b065
mov eax, dword [esp + 0xa8]
add esp, 0x24
cmp dword [esp + 0x98], 0x10
jae 0x408e51
lea eax, [esp + 0x84]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x64]
push ecx
push eax
push edx
call fcn.00407ec0
add esp, 0xc
cmp eax, 9
jl 0x4091df
mov ecx, dword [esp + 0x84]
mov edi, 0x10
cmp dword [esp + 0x98], edi
jae 0x408e8c
lea ecx, [esp + 0x84]
mov edx, dword [ecx]
xor ecx, ecx
cmp ecx, dword [esp + 0x78]
jl 0x4091df
jg 0x408ea6
cmp edx, dword [esp + 0x74]
jb 0x4091df
lea esi, [eax - 1]
cmp esi, dword [esp + 0x94]
jbe 0x408eb7
call fcn.0040b702
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x98], edi
jae 0x408ece
lea eax, [esp + 0x84]
mov byte [eax + esi], 0
mov esi, dword [esp + 0x98]
mov ebx, dword [esp + 0x84]
mov eax, ebx
cmp esi, edi
jae 0x408eed
lea eax, [esp + 0x84]
lea ecx, [esp + 0x9c]
add eax, 8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408f17
test dl, dl
je 0x408f13
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408f17
add eax, 2
add ecx, 2
test dl, dl
jne 0x408ef7
xor eax, eax
jmp 0x408f1c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408f5c
fld dword [0x424a90]
fsub qword [0x41e960]
fld dword [0x4248f8]
fadd dword [esp + 0x68]
fsub qword [0x41e958]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4091df
fld dword [esp + 0x20]
fsub qword [0x41e950]
fstp dword [esp + 0x20]
jmp 0x4091df
cmp esi, edi
jb 0x4090ac
mov edi, ebx
test ebx, ebx
je 0x408f97
mov eax, ebx
cmp esi, 0x10
jae 0x408f78
lea eax, [esp + 0x84]
cmp eax, edi
ja 0x408f97
mov eax, ebx
cmp esi, 0x10
jae 0x408f8a
lea eax, [esp + 0x84]
mov ecx, dword [esp + 0x94]
add eax, ecx
cmp edi, eax
jbe 0x408fa3
call fcn.0040b702
mov ecx, dword [esp + 0x94]
lea esi, [esp + 0x80]
mov ebx, edi
lea esp, [esp]
cmp dword [esp + 0x98], 0x10
mov edx, dword [esp + 0x84]
mov eax, edx
jae 0x408fca
lea eax, [esp + 0x84]
lea edi, [eax + ecx]
test edi, edi
je 0x409001
cmp dword [esp + 0x98], 0x10
mov eax, edx
jae 0x408fe4
lea eax, [esp + 0x84]
cmp eax, edi
ja 0x409001
cmp dword [esp + 0x98], 0x10
mov eax, edx
jae 0x408ffb
lea eax, [esp + 0x84]
add eax, ecx
cmp edi, eax
jbe 0x409006
call fcn.0040b702
cmp esi, 0xfffffffc
je 0x40901f
test esi, esi
je 0x40901a
lea eax, [esp + 0x80]
cmp esi, eax
je 0x40901f
call fcn.0040b702
cmp ebx, edi
je 0x409126
fld dword [0x424758]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [0x424758]
fld dword [0x424758]
mov cx, word [0x424c70]
fsubr qword [0x41e948]
movsx edx, cx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fadd dword [esp + 0x20]
fadd qword [0x41e940]
fucompp
fnstsw ax
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
inc word [0x424c70]
test ah, 0x44
jnp 0x409093
fld dword [esp + 0x30]
fld dword [esp + 0x28]
fsub qword [0x41e938]
fsub dword [0x424bc4]
fsubp st(1)
fstp dword [esp + 0x30]
cmp esi, 0xfffffffc
je 0x4090c9
test esi, esi
jne 0x4090a1
call fcn.0040b702
cmp dword [esi + 0x18], 0x10
jb 0x4090b8
mov eax, dword [esi + 4]
jmp 0x4090bb
lea edi, [esp + 0x84]
jmp 0x408f6a
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp ebx, ecx
jb 0x4090c9
call fcn.0040b702
mov byte [ebx], 0
cmp esi, 0xfffffffc
je 0x4090f6
test esi, esi
jne 0x4090da
call fcn.0040b702
cmp dword [esi + 0x18], 0x10
jb 0x4090e5
mov eax, dword [esi + 4]
jmp 0x4090e8
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x4090f6
call fcn.0040b702
fld qword [0x424b48]
mov eax, dword [esp + 0x24]
fsub qword [0x41e930]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
inc ebx
fmulp st(1)
call fcn.0040ac50
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x24], eax
jmp 0x408fb0
fld qword [0x41e928]
push 0x7e
fstp qword [0x424798]
push 0x424ac8
call fcn.00401140
push 0
push 0
lea ecx, [esp + 0x90]
push ecx
mov esi, eax
lea edx, [esp + 0xb0]
push esi
push edx
call fcn.004081e0
fldz
push 0x7e
fst dword [esp + 0x34]
push 0
fstp dword [esp + 0x38]
push esi
call fcn.0040aab0
push esi
call fcn.0040b065
push 0xc
push 0x424e24
call fcn.00401140
add esp, 0x34
mov esi, eax
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409188
sub eax, ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x8c]
call fcn.00404510
fldz
mov edi, eax
fst dword [esp + 0x14]
xor eax, eax
fstp dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], eax
push esi
mov dword [esi + 8], eax
call fcn.0040b065
mov ecx, dword [0x424d38]
mov eax, 0x9b6496d5
sub eax, ecx
add dword [esp + 0x30], eax
mov edx, dword [esp + 0x98]
add edx, 0xfffffff5
add esp, 4
cmp edi, edx
je 0x4091f4
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x70]
jne 0x408d46
jmp 0x409249
mov eax, dword [0x4249b4]
mov ecx, dword [esp + 0x50]
mov edx, dword [0x424e90]
sub eax, ecx
imul edx, eax
push 0xb
mov dword [0x424e90], edx
mov esi, 1
add dword [0x4249b4], esi
push edi
lea ecx, [esp + 0x88]
call fcn.00404cd0
mov eax, dword [esp + 0x2c]
add eax, 0x4f881c35
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], esi
fild dword [esp + 0x14]
fadd dword [0x424974]
fstp dword [0x424974]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
push 0x408
push 0
push edi
fadd dword [esp + 0x2c]
fadd qword [0x424238]
fstp qword [0x424238]
fld dword [esp + 0x2c]
fadd qword [0x41e350]
fstp dword [esp + 0x2c]
fldz
fst dword [esp + 0x20]
fstp dword [esp + 0x20]
call fcn.0040aab0
push edi
call fcn.0040b065
fldz
xor eax, eax
fst dword [esp + 0x24]
mov dword [esi], eax
fstp dword [esp + 0x24]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push esi
mov byte [esi + 0xc], al
call fcn.0040b065
fldz
mov esi, dword [esp + 0x48]
fst dword [esp + 0x28]
push 0x31e
fstp dword [esp + 0x2c]
push 0
push esi
call fcn.0040aab0
push esi
call fcn.0040b065
fldz
mov esi, dword [esp + 0x5c]
fst dword [esp + 0x38]
push 0xaf1
fstp dword [esp + 0x3c]
push 0
push esi
call fcn.0040aab0
push esi
call fcn.0040b065
push 0x40
lea edx, [esp + 0xd4]
push 0
push edx
call fcn.0040aab0
add esp, 0x40
cmp dword [esp + 0x54], 0
je 0x409611
mov eax, dword [esp + 0x6c]
push 0x708
push eax
call fcn.004021d0
add esp, 8
cmp dword [esp + 0x94], 0x200
jbe 0x409603
push 0x370
call fcn.0040ab79
add esp, 4
mov ebx, eax
push ebx
push 0xeb
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
inc word [0x422364]
mov cx, word [0x422364]
mov eax, dword [0x4248e4]
movsx edx, cx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsub dword [esp + 0x20]
fsub dword [esp + 0x20]
fcompp
fnstsw ax
fld dword [esp + 0x20]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x20]
test ah, 5
jp 0x4093e1
mov ecx, dword [esp + 0x60]
sub ecx, 0xb69c643
cmp ecx, 0x3b830fce
je 0x4093e1
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fadd dword [0x4226c0]
fadd qword [0x424e18]
fmul qword [0x424bf0]
fstp qword [0x424bf0]
fsubr dword [0x4226c0]
fstp dword [0x4226c0]
jmp 0x4093e3
fstp st(0)
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
call fcn.00402680
fld qword [0x423298]
fsub qword [0x41e920]
push 3
push 0x42487c
fstp qword [0x423298]
call fcn.00401140
fld dword [0x424800]
mov edi, eax
fsub qword [0x41e918]
push edi
push ebx
fsub qword [0x41e910]
fstp qword [esp + 0x6c]
call fcn.0040b4df
fldz
mov esi, eax
xor eax, eax
fst dword [esp + 0x2c]
mov word [edi], ax
fstp dword [esp + 0x2c]
push edi
mov byte [edi + 2], al
call fcn.0040b065
fld dword [0x4247f0]
mov ax, word [0x4249d0]
movsx ecx, ax
mov dword [esp + 0x30], ecx
add esp, 0x1c
fild dword [esp + 0x14]
fadd dword [esp + 0x30]
cmp dword [esp + 0x98], 0x10
mov eax, dword [esp + 0x84]
fsubp st(1)
fstp dword [0x4247f0]
jae 0x409485
lea eax, [esp + 0x84]
mov edx, dword [esp + 0x94]
push esi
push 1
push edx
push eax
call fcn.0040b399
push esi
call fcn.0040b1bb
add esp, 0x14
push 0x104
lea eax, [ebx + 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x15
push 0x4248b0
call fcn.00401140
push 0x20
push 0x424c84
mov edi, eax
call fcn.00401140
mov esi, eax
mov eax, dword [0x426980]
push eax
push esi
lea eax, [ebx + 0x104]
push eax
push edi
lea eax, [ebx + 0x208]
push 0x168
push eax
call fcn.0040b4f6
fldz
xor eax, eax
fst dword [esp + 0x3c]
mov dword [esi], eax
fstp dword [esp + 0x3c]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
push esi
mov dword [esi + 0x1c], eax
call fcn.0040b065
fldz
xor eax, eax
fst dword [esp + 0x40]
mov dword [edi], eax
fstp dword [esp + 0x40]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
push edi
mov byte [edi + 0x14], al
call fcn.0040b065
mov ecx, dword [0x426980]
push 1
push ecx
call fcn.00401440
lea eax, [ebx + 0x208]
push eax
push ebx
call fcn.00401220
add esp, 0x40
push 0x370
push 0
push ebx
call fcn.0040aab0
push ebx
call fcn.0040b065
add esp, 0x10
push 0x15f90
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x424790]
mov dx, word [0x424980]
add eax, 0xafdd2c40
movsx edx, dx
or ecx, 0xffffffff
add word [0x424980], cx
add dword [0x424790], ecx
cmp eax, edx
jl 0x409603
fld dword [esp + 0x20]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsub dword [esp + 0x28]
fld dword [esp + 0x20]
fcompp
fnstsw ax
fld dword [esp + 0x28]
fadd st(1)
fstp dword [esp + 0x28]
test ah, 0x41
jne 0x4095e9
dec dword [esp + 0x24]
fstp st(0)
mov ecx, dword [esp + 0x24]
fld dword [esp + 0x68]
fstp st(0)
jmp 0x409603
fld qword [0x422368]
fmul qword [esp + 0x54]
fstp qword [esp + 0x54]
fadd qword [0x422368]
fstp qword [0x422368]
fld dword [0x41e908]
mov ebx, dword [esp + 0x40]
fstp dword [esp + 0x28]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x424e94]
mov ecx, dword [esp + 0x2c]
mov eax, 0x2465cbfc
sub eax, edx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fld dword [esp + 0x20]
faddp st(2)
fsubrp st(1)
call fcn.0040ac50
mov dword [esp + 0x2c], eax
fld dword [esp + 0x20]
fadd qword [0x41e350]
or esi, 0xffffffff
push 0
fstp dword [esp + 0x24]
add dword [0x424e94], esi
movzx edx, word [0x424e74]
mov eax, dword [0x426980]
imul edx, edx, 0x9861522a
push eax
mov word [0x424e74], dx
call fcn.00401440
add esp, 8
test eax, eax
jne 0x4096a3
mov ecx, dword [0x426988]
mov edx, dword [0x4264c4]
push ecx
push edx
call fcn.00401220
add esp, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
lea edx, [ecx + eax - 0x19dde8bd]
mov dword [esp + 0x24], edx
add dword [esp + 0x24], esi
mov esi, dword [esp + 0x3c]
xor edi, edi
jmp 0x408b50