Function at 0x4163f0
Capabilities:
Create thread
Resolve function by parsing pe exports
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x330
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
lea eax, [ebx + 0x10969f8]
push edx
mov ecx, ebx
mov dword [esp + 0x5c], eax
call fcn.00415470
test eax, eax
je 0x416deb
mov eax, dword [ebx + 0x10cc07c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov dword [eax + 0xe0], esi
mov dword [eax + 0xe4], edi
mov eax, dword [ebx + 0x10cc080]
push 0
lea edx, [ebx + 0x24e8]
mov dword [eax + 0xe0], ebp
mov dword [eax + 0xe4], ecx
mov eax, dword [ebx + 0x82d28]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx + 0x10cbbb4]
mov ecx, ebp
sub ecx, esi
sbb edx, edi
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0x10cbf3c]
mov dword [esp + 0x5c], edx
fild qword [esp + 0x58]
mov dword [esp + 0x20], ecx
sub ebp, esi
mov ecx, 0x3e
fstp qword [esp + 0x60]
lea esi, [esp + 0x1c0]
fld qword [ebx + 0x10cbf40]
lea edi, [esp + 0x1c8]
fstp qword [esp + 0x58]
push 0xcc
fld qword [ebx + 0x10cbf48]
mov dword [esp + 0x2c], eax
fstp qword [esp + 0x94]
fld qword [0x43eb00]
fstp qword [esp + 0x1c4]
rep movsd dword es:[edi], dword [esi]
fld qword [0x43eaf8]
fstp qword [esp + 0xc4]
mov ecx, 0x3e
lea esi, [esp + 0xc4]
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
call fcn.00416f80
mov edx, dword [ebx + 0x1097a10]
add esp, 4
push eax
push 2
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
imul esi, ebp
add esi, esi
add esi, esi
add esi, esi
push esi
push 0x40
call edi
push eax
mov dword [esp + 0x84], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push 0x40
mov dword [esp + 0x24], eax
call edi
push eax
mov dword [esp + 0x88], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push 0
push eax
mov dword [esp + 0x40], edi
call fcn.004238f0
push esi
push 0
push edi
call fcn.004238f0
mov ecx, dword [ebx + 0x10cc078]
fld dword [ecx + 0x4ff0]
mov eax, dword [esp + 0x64]
fdivr qword [esp + 0x78]
mov edx, dword [esp + 0x60]
add esp, 0x18
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
fstp qword [esp + 0x88]
jg 0x41666e
jl 0x4165b7
mov eax, dword [esp + 0x38]
cmp edx, eax
jae 0x41666e
mov edi, dword [esp + 0x40]
sub edi, dword [esp + 0x48]
cmp dword [esp + 0x28], 0
jle 0x416644
fld qword [esp + 0x60]
mov ecx, edi
sub esp, 0x10
test ecx, ecx
fstp qword [esp + 8]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
jge 0x4165e5
fadd qword [0x43d7e8]
mov edx, dword [esp + 0x30]
fstp qword [esp]
push edx
mov ecx, ebx
call fcn.00415060
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea esi, [ebx + 0x10cbc38]
lea edi, [eax + edi*8]
mov dword [esp + 0x24], ecx
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
sub edx, 1
push edx
push eax
push ecx
mov ecx, dword [ebx + 0x10cc078]
call fcn.004018f0
fmul dword [esp + 0x30]
lea eax, [ebp*8]
add esi, 4
fstp qword [edi]
add edi, eax
sub dword [esp + 0x24], 1
jne 0x416610
add dword [esp + 0x40], 1
mov eax, dword [esp + 0x44]
adc eax, 0
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
jl 0x4165b7
jg 0x41666e
mov edx, dword [esp + 0x40]
cmp edx, dword [esp + 0x38]
jb 0x4165b7
mov eax, dword [ebx + 0x1097a10]
push 2
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
xor esi, esi
cmp dword [esp + 0x28], esi
mov dword [ebx + 0x10cbf54], ecx
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0x10cbf58], edx
mov edx, dword [esp + 0x38]
mov dword [ebx + 0x10cbf60], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x10cbf64], ecx
mov dword [ebx + 0x10cbf68], edx
mov dword [ebx + 0x10cbf6c], eax
mov dword [ebx + 0x10cbf5c], esi
jle 0x41671a
lea ecx, [ebx + 0x10cbf70]
lea edi, [esp + 0x2c0]
mov dword [esp + 0x1c], ecx
nop
mov edx, dword [esp + 0x1c]
push 0
push 0
push edi
push 0x415860
push 0
push 0
mov dword [edx], 0
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
add dword [esp + 0x1c], 4
add esi, 1
add edi, 4
cmp esi, dword [esp + 0x28]
jl 0x4166e0
mov edi, dword [esp + 0x28]
mov eax, edi
imul eax, eax, 0x64
mov dword [esp + 0x20], eax
jmp 0x416730
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
test edi, edi
jle 0x41675a
lea eax, [ebx + 0x10cbf70]
mov ecx, edi
lea esp, [esp]
add esi, dword [eax]
add eax, 4
sub ecx, 1
jne 0x416750
mov eax, esi
cdq
idiv edi
push eax
mov eax, dword [ebx + 0x1097a10]
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, dword [esp + 0x20]
jl 0x416730
test edi, edi
jle 0x41678b
mov ecx, edi
xor eax, eax
lea edi, [esp + 0x2c0]
rep stosd dword es:[edi], eax
test ebp, ebp
fld qword [0x43eae8]
mov dword [esp + 0x1c], 0
jbe 0x416888
fld qword [esp + 0x58]
mov ecx, dword [esp + 0x34]
fdiv qword [0x43dab0]
mov dword [esp + 0x2c], ecx
fstp qword [esp + 0x68]
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test edx, edx
jge 0x4167c9
fadd qword [0x43d7e8]
fdiv qword [esp + 0x88]
fld qword [esp + 0x68]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x41686e
fld qword [esp + 0x90]
fdiv qword [0x43dab0]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x416870
xor esi, esi
cmp dword [esp + 0x28], esi
jle 0x416870
mov edi, dword [esp + 0x2c]
fstp st(0)
fld qword [edi]
call fcn.00425540
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld qword [0x43eae8]
fmul st(1), st(0)
fld st(1)
fxch st(2)
fstp qword [edi]
fld qword [esp + esi*8 + 0xc0]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x41683d
fxch st(1)
fst qword [esp + esi*8 + 0xc0]
fxch st(1)
fld qword [esp + esi*8 + 0x1c0]
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x416858
fxch st(1)
fstp qword [esp + esi*8 + 0x1c0]
jmp 0x41685a
fstp st(1)
lea eax, [ebp*8]
add esi, 1
add edi, eax
cmp esi, dword [esp + 0x28]
jl 0x416803
jmp 0x416870
fstp st(0)
mov eax, dword [esp + 0x1c]
add dword [esp + 0x2c], 8
add eax, 1
cmp eax, ebp
mov dword [esp + 0x1c], eax
jb 0x4167b7
mov esi, dword [esp + 0x28]
xor eax, eax
cmp esi, 4
jl 0x4168f1
lea ecx, [esi - 3]
fld qword [esp + eax*8 + 0xc0]
add eax, 4
cmp eax, ecx
fsub qword [esp + eax*8 + 0x1a0]
fstp qword [esp + eax*8 + 0xa0]
fld qword [esp + eax*8 + 0xa8]
fsub qword [esp + eax*8 + 0x1a8]
fstp qword [esp + eax*8 + 0xa8]
fld qword [esp + eax*8 + 0xb0]
fsub qword [esp + eax*8 + 0x1b0]
fstp qword [esp + eax*8 + 0xb0]
fld qword [esp + eax*8 + 0xb8]
fsub qword [esp + eax*8 + 0x1b8]
fstp qword [esp + eax*8 + 0xb8]
jl 0x416896
cmp eax, esi
jge 0x416911
fld qword [esp + eax*8 + 0xc0]
add eax, 1
cmp eax, esi
fsub qword [esp + eax*8 + 0x1b8]
fstp qword [esp + eax*8 + 0xb8]
jl 0x4168f5
xor edi, edi
test ebp, ebp
mov dword [esp + 0x38], edi
jbe 0x416a05
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
lea eax, [eax + ebp*8]
mov dword [esp + 0x24], eax
xor eax, eax
cmp esi, 4
jl 0x4169bc
mov edx, dword [esp + 0x30]
lea esi, [edi + ebp*2]
mov edi, dword [esp + 0x34]
mov ecx, ebp
shl ecx, 5
add esi, ebp
lea esi, [edi + esi*8]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x38]
lea esi, [esi + ebp*2]
lea edi, [edi + esi*8]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x2c], edi
jmp 0x41696a
mov edi, dword [esp + 0x2c]
fld qword [edx]
add dword [esp + 0x2c], ecx
fsub qword [esp + eax*8 + 0x1c0]
add eax, 4
fstp qword [edx]
add edx, ecx
fld qword [esi]
fsub qword [esp + eax*8 + 0x1a8]
fstp qword [esi]
add esi, ecx
fld qword [edi]
fsub qword [esp + eax*8 + 0x1b0]
fstp qword [edi]
mov edi, dword [esp + 0x1c]
fld qword [edi]
add dword [esp + 0x1c], ecx
fsub qword [esp + eax*8 + 0x1b8]
fstp qword [edi]
mov edi, dword [esp + 0x28]
add edi, 0xfffffffd
cmp eax, edi
jl 0x416966
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
cmp eax, esi
jge 0x4169e9
mov edx, dword [esp + 0x34]
mov ecx, eax
imul ecx, ebp
add ecx, edi
lea ecx, [edx + ecx*8]
fld qword [ecx]
lea edx, [ebp*8]
fsub qword [esp + eax*8 + 0x1c0]
add eax, 1
fstp qword [ecx]
add ecx, edx
cmp eax, esi
jl 0x4169ce
mov eax, 8
add dword [esp + 0x30], eax
add dword [esp + 0x24], eax
add edi, 1
cmp edi, ebp
mov dword [esp + 0x38], edi
jb 0x41692e
xor edi, edi
test esi, esi
jle 0x416a5c
fldz
lea eax, [ebx + 0x10cbcb8]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
fst dword [ecx + 0x80]
fld qword [esp + edi*8 + 0xc0]
fabs
fdiv st(2)
call fcn.00423f00
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [esp + 0x24]
lea edx, [ecx + ecx*4]
add edx, edx
add edx, edx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
add edi, 1
add eax, 4
cmp edi, esi
fstp dword [eax - 4]
mov dword [esp + 0x24], eax
jl 0x416a17
fstp st(0)
mov ecx, dword [ebx + 0x10cc078]
fstp st(0)
fld qword [esp + 0x60]
mov esi, dword [esp + 0x54]
fstp dword [esp + 0x20]
push ecx
fld dword [esp + 0x24]
lea eax, [ebx + 0x10cbbb4]
fdiv dword [ecx + 0x4ff0]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push eax
push esi
call fcn.00402280
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x416ada
mov eax, dword [ebx + 0x1097a10]
push 0x64
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x1097a10], 0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
test ebp, ebp
mov dword [esp + 0x1c], esi
jbe 0x416c4b
fld qword [esp + 0x58]
mov eax, dword [esp + 0x34]
fdiv qword [0x43dab0]
mov edi, dword [esp + 0x28]
lea ecx, [eax + ebp*8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], eax
lea ecx, [esi + 8]
fstp qword [esp + 0x68]
fild dword [esp + 0x1c]
fdiv qword [esp + 0x88]
fld qword [esp + 0x68]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x416c32
fld qword [esp + 0x90]
fdiv qword [0x43dab0]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x416c34
xor eax, eax
cmp edi, 4
jl 0x416bcf
mov edx, dword [esp + 0x38]
lea edi, [esi + ebp*2]
mov esi, dword [esp + 0x34]
mov ecx, ebp
shl ecx, 5
add edi, ebp
lea edi, [esi + edi*8]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x1c]
lea edi, [edi + ebp*2]
lea esi, [esi + edi*8]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x2c]
fld qword [edx]
mov edi, dword [esp + 0x24]
add dword [esp + 0x24], ecx
fstp dword [esp + eax*4 + 0xc0]
fld qword [esi]
add eax, 4
fstp dword [esp + eax*4 + 0xb4]
add edx, ecx
fld qword [edi]
mov edi, dword [esp + 0x30]
add dword [esp + 0x30], ecx
fstp dword [esp + eax*4 + 0xb8]
fld qword [edi]
mov edi, dword [esp + 0x28]
fstp dword [esp + eax*4 + 0xbc]
add edi, 0xfffffffd
add esi, ecx
cmp eax, edi
jl 0x416b81
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
cmp eax, edi
jge 0x416c09
mov ecx, dword [esp + 0x34]
mov edx, eax
imul edx, ebp
add edx, esi
lea ecx, [ecx + edx*8]
jmp 0x416bf0
fld qword [ecx]
lea edx, [ebp*8]
fstp dword [esp + eax*4 + 0xc0]
add eax, 1
add ecx, edx
cmp eax, edi
jl 0x416bf0
push 0
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x28]
lea eax, [edi*4]
push eax
lea ecx, [esp + 0xcc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 8
jmp 0x416c34
fstp st(0)
add dword [esp + 0x38], ecx
add dword [esp + 0x2c], ecx
add esi, 1
cmp esi, ebp
mov dword [esp + 0x1c], esi
jb 0x416b19
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x20]
push eax
push ecx
push esi
mov ecx, ebx
call fcn.004130e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x78]
movzx esi, word [esp + 0xb8]
mov edx, dword [esp + 0x54]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push edx
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0xa0]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp edi, 0xffffffff
je 0x416d5e
fld qword [esp + 0x58]
mov ebp, 0x18
fdiv qword [0x43dab0]
sub ebp, esi
call fcn.00423f00
cdq
mov ecx, 0x3c
idiv ecx
lea esi, [esp + 0x98]
mov dword [esp + 0x20], 3
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
lea esp, [esp]
lea edx, [esp + 0x70]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ax, word [esp + 0x24]
mov cx, word [esp + 0x30]
push esi
lea edx, [esp + 0x74]
push edx
mov word [esp + 0x80], bp
mov word [esp + 0x82], ax
mov word [esp + 0x84], cx
mov word [esp + 0x86], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
add esi, 8
sub dword [esp + 0x20], 1
jne 0x416d10
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0xa0]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x84]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call edi
mov ebp, dword [esp + 0x80]
push ebp
call esi
push ebp
call edi
mov eax, dword [ebx + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push eax
mov dword [ebx + 0x1097a30], 1
call esi
mov ecx, dword [esp + 0x54]
push ecx
push 1
mov dword [ebx + 0x1097a10], 0
mov edx, dword [0x454174]
push 0x400
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret