Function at 0x417620
Capabilities:
Create thread
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x328
push ebx
push ebp
mov ebp, dword [esp + 0x334]
push esi
push edi
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [ebp + 0x10969f8]
push ebp
mov dword [esp + 0x58], eax
call fcn.004174b0
test eax, eax
je 0x418063
mov eax, dword [ebp + 0x10cc07c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov dword [eax + 0xe0], esi
mov dword [eax + 0xe4], edi
mov eax, dword [ebp + 0x10cc080]
push 0
lea edx, [ebp + 0x24e8]
mov dword [eax + 0xe0], ebx
mov dword [eax + 0xe4], ecx
mov eax, dword [ebp + 0x82d28]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x10cbbb4]
mov ecx, ebx
sub ecx, esi
sbb edx, edi
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x10cbf3c]
mov dword [esp + 0x54], edx
fild qword [esp + 0x50]
mov edx, dword [0x450440]
mov dword [esp + 0x24], ecx
push 0x100
fstp qword [esp + 0x64]
shl edx, 9
fld qword [ebp + 0x10cbf40]
sub ebx, esi
fstp qword [esp + 0x54]
add edx, 0x44f440
fld qword [ebp + 0x10cbf48]
push edx
fstp qword [esp + 0x90]
mov dword [esp + 0x28], eax
fld qword [0x443618]
mov eax, dword [0x44f3ac]
fstp qword [esp + 0x1c0]
mov ecx, 0x3e
fld qword [0x443610]
lea esi, [esp + 0x1c0]
lea edi, [esp + 0x1c8]
fstp qword [esp + 0xc0]
rep movsd dword es:[edi], dword [esi]
push 0xcc
mov ecx, 0x3e
lea esi, [esp + 0xc4]
lea edi, [esp + 0xcc]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x450440]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x417763
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebp + 0x1097a10]
shl eax, 9
add eax, 0x44f440
push eax
push 2
push 0x400
push edx
mov dword [0x450440], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
imul esi, ebx
add esi, esi
add esi, esi
add esi, esi
push esi
push 0x40
call edi
push eax
mov dword [esp + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push 0x40
mov dword [esp + 0x1c], eax
call edi
push eax
mov dword [esp + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x14]
push esi
push 0
push eax
mov dword [esp + 0x40], edi
call fcn.004263e0
add esp, 0xc
push esi
push 0
push edi
call fcn.004263e0
mov ecx, dword [ebp + 0x10cc078]
fld dword [ecx + 0x4ff0]
mov eax, dword [esp + 0x50]
fdivr qword [esp + 0x6c]
mov edx, dword [esp + 0x4c]
add esp, 0xc
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
fstp qword [esp + 0x80]
jg 0x4178ec
jl 0x417821
mov eax, dword [esp + 0x28]
cmp edx, eax
jae 0x4178ec
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x40]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
jle 0x4178c2
mov ecx, dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x20]
lea esi, [ebp + 0x10cbc38]
lea edi, [ecx + edx*8]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x24], 4
ja 0x417881
fld qword [esp + 0x60]
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
test ecx, ecx
fstp qword [esp + 8]
fild dword [esp + 0x2c]
jge 0x417873
fadd qword [0x443510]
mov eax, dword [esp + 0x34]
fstp qword [esp]
call fcn.00416520
jmp 0x417883
fldz
mov edx, dword [esp + 0x3c]
fstp qword [esp + 0x58]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
push edx
push ecx
mov ecx, dword [ebp + 0x10cc078]
sub eax, 1
call fcn.00402c20
fld qword [esp + 0x58]
fstp dword [esp + 0x18]
lea eax, [ebx*8]
fmul dword [esp + 0x18]
add esi, 4
fstp qword [edi]
add edi, eax
sub dword [esp + 0x30], 1
jne 0x41784f
add dword [esp + 0x38], 1
mov eax, dword [esp + 0x3c]
adc eax, 0
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
jl 0x417821
jg 0x4178ec
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x28]
jb 0x417821
mov eax, dword [ebp + 0x1097a10]
push 2
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
mov dword [ebp + 0x10cbf54], ecx
mov ecx, dword [esp + 0x44]
mov dword [ebp + 0x10cbf58], edx
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x10cbf60], eax
mov eax, dword [esp + 0x2c]
xor esi, esi
test edi, edi
mov dword [ebp + 0x10cbf64], ecx
mov dword [ebp + 0x10cbf68], edx
mov dword [ebp + 0x10cbf6c], eax
mov dword [ebp + 0x10cbf5c], esi
jle 0x41799e
lea ecx, [ebp + 0x10cbf70]
lea edi, [esp + 0x2b8]
mov dword [esp + 0x14], ecx
nop
mov edx, dword [esp + 0x14]
push 0
push 0
push edi
push 0x416480
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 + 0x14], 4
add esi, 1
add edi, 4
cmp esi, dword [esp + 0x20]
jl 0x417960
mov edi, dword [esp + 0x20]
mov eax, edi
imul eax, eax, 0x64
mov dword [esp + 0x18], eax
jmp 0x4179b0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
test edi, edi
jle 0x4179da
lea eax, [ebp + 0x10cbf70]
mov ecx, edi
lea esp, [esp]
add esi, dword [eax]
add eax, 4
sub ecx, 1
jne 0x4179d0
mov eax, esi
cdq
idiv edi
push eax
mov eax, dword [ebp + 0x1097a10]
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, dword [esp + 0x18]
jl 0x4179b0
test edi, edi
jle 0x417a0d
mov ecx, dword [esp + 0x20]
xor eax, eax
lea edi, [esp + 0x2b8]
rep stosd dword es:[edi], eax
test ebx, ebx
fld qword [0x443548]
mov dword [esp + 0x14], 0
jbe 0x417b15
fld qword [esp + 0x50]
mov ecx, dword [esp + 0x34]
fdiv qword [0x443438]
mov dword [esp + 0x28], ecx
fstp qword [esp + 0x58]
mov edx, dword [esp + 0x14]
fild dword [esp + 0x14]
test edx, edx
jge 0x417a4b
fadd qword [0x443510]
fdiv qword [esp + 0x80]
fld qword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x417afb
fld qword [esp + 0x88]
fdiv qword [0x443438]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x417afd
xor esi, esi
cmp dword [esp + 0x20], esi
jle 0x417afd
mov edi, dword [esp + 0x28]
lea esp, [esp]
fstp st(0)
fld qword [edi]
call fcn.0043b160
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld qword [0x443548]
fmul st(1), st(0)
fld st(1)
fxch st(2)
fstp qword [edi]
fld qword [esp + esi*8 + 0xb8]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x417aca
fxch st(1)
fst qword [esp + esi*8 + 0xb8]
fxch st(1)
fld qword [esp + esi*8 + 0x1b8]
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x417ae5
fxch st(1)
fstp qword [esp + esi*8 + 0x1b8]
jmp 0x417ae7
fstp st(1)
lea eax, [ebx*8]
add esi, 1
add edi, eax
cmp esi, dword [esp + 0x20]
jl 0x417a90
jmp 0x417afd
fstp st(0)
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 8
add eax, 1
cmp eax, ebx
mov dword [esp + 0x14], eax
jb 0x417a39
mov esi, dword [esp + 0x20]
xor eax, eax
cmp esi, 4
jl 0x417b7e
lea ecx, [esi - 3]
fld qword [esp + eax*8 + 0xb8]
add eax, 4
cmp eax, ecx
fsub qword [esp + eax*8 + 0x198]
fstp qword [esp + eax*8 + 0x98]
fld qword [esp + eax*8 + 0xa0]
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]
jl 0x417b23
cmp eax, esi
jge 0x417b9e
fld qword [esp + eax*8 + 0xb8]
add eax, 1
cmp eax, esi
fsub qword [esp + eax*8 + 0x1b0]
fstp qword [esp + eax*8 + 0xb0]
jl 0x417b82
xor edi, edi
test ebx, ebx
mov dword [esp + 0x14], edi
jbe 0x417c92
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
lea eax, [eax + ebx*8]
mov dword [esp + 0x1c], eax
xor eax, eax
cmp esi, 4
jl 0x417c49
mov edx, dword [esp + 0x24]
lea esi, [edi + ebx*2]
mov edi, dword [esp + 0x34]
mov ecx, ebx
shl ecx, 5
add esi, ebx
lea esi, [edi + esi*8]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x14]
lea esi, [esi + ebx*2]
lea edi, [edi + esi*8]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], edi
jmp 0x417bf7
mov edi, dword [esp + 0x28]
fld qword [edx]
add dword [esp + 0x28], ecx
fsub qword [esp + eax*8 + 0x1b8]
add eax, 4
fstp qword [edx]
add edx, ecx
fld qword [esi]
fsub qword [esp + eax*8 + 0x1a0]
fstp qword [esi]
add esi, ecx
fld qword [edi]
fsub qword [esp + eax*8 + 0x1a8]
fstp qword [edi]
mov edi, dword [esp + 0x30]
fld qword [edi]
add dword [esp + 0x30], ecx
fsub qword [esp + eax*8 + 0x1b0]
fstp qword [edi]
mov edi, dword [esp + 0x20]
add edi, 0xfffffffd
cmp eax, edi
jl 0x417bf3
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
cmp eax, esi
jge 0x417c76
mov edx, dword [esp + 0x34]
mov ecx, eax
imul ecx, ebx
add ecx, edi
lea ecx, [edx + ecx*8]
fld qword [ecx]
lea edx, [ebx*8]
fsub qword [esp + eax*8 + 0x1b8]
add eax, 1
fstp qword [ecx]
add ecx, edx
cmp eax, esi
jl 0x417c5b
mov eax, 8
add dword [esp + 0x24], eax
add dword [esp + 0x1c], eax
add edi, 1
cmp edi, ebx
mov dword [esp + 0x14], edi
jb 0x417bbb
xor edi, edi
test esi, esi
jle 0x417ce9
fldz
lea eax, [ebp + 0x10cbcb8]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
fst dword [ecx + 0x80]
fld qword [esp + edi*8 + 0xb8]
fabs
fdiv st(2)
call fcn.00427fe0
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [esp + 0x1c]
lea edx, [ecx + ecx*4]
add edx, edx
add edx, edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
add edi, 1
add eax, 4
cmp edi, esi
fstp dword [eax - 4]
mov dword [esp + 0x1c], eax
jl 0x417ca4
fstp st(0)
mov esi, dword [ebp + 0x10cc078]
fstp st(0)
fld qword [esp + 0x60]
mov edi, dword [esp + 0x4c]
fstp dword [esp + 0x18]
push ecx
fld dword [esp + 0x1c]
lea eax, [ebp + 0x10cbbb4]
fdiv dword [esi + 0x4ff0]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push edi
call fcn.00403590
xor esi, esi
push esi
push 0x20
push 3
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x417d66
mov eax, dword [ebp + 0x1097a10]
push 0x64
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0x1097a10], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x328
ret 4
push 2
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, esi
mov dword [esp + 0x14], esi
jbe 0x417edb
fld qword [esp + 0x50]
mov eax, dword [esp + 0x34]
fdiv qword [0x443438]
mov edi, dword [esp + 0x20]
lea ecx, [eax + ebx*8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
mov ecx, 8
fstp qword [esp + 0x58]
mov edx, esi
test edx, edx
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
jge 0x417db7
fadd qword [0x443510]
fdiv qword [esp + 0x80]
fld qword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x417ec2
fld qword [esp + 0x88]
fdiv qword [0x443438]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x417ec4
xor eax, eax
cmp edi, 4
jl 0x417e69
mov edx, dword [esp + 0x30]
lea edi, [esi + ebx*2]
mov esi, dword [esp + 0x34]
mov ecx, ebx
shl ecx, 5
add edi, ebx
lea edi, [esi + edi*8]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x14]
lea edi, [edi + ebx*2]
lea esi, [esi + edi*8]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x28]
fld qword [edx]
mov edi, dword [esp + 0x1c]
add dword [esp + 0x1c], ecx
fstp dword [esp + eax*4 + 0xb8]
fld qword [esi]
add eax, 4
fstp dword [esp + eax*4 + 0xac]
add edx, ecx
fld qword [edi]
mov edi, dword [esp + 0x24]
add dword [esp + 0x24], ecx
fstp dword [esp + eax*4 + 0xb0]
fld qword [edi]
mov edi, dword [esp + 0x20]
fstp dword [esp + eax*4 + 0xb4]
add edi, 0xfffffffd
add esi, ecx
cmp eax, edi
jl 0x417e1b
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
cmp eax, edi
jge 0x417e99
mov edx, dword [esp + 0x34]
mov ecx, eax
imul ecx, ebx
add ecx, esi
lea ecx, [edx + ecx*8]
jmp 0x417e80
fld qword [ecx]
lea edx, [ebx*8]
fstp dword [esp + eax*4 + 0xb8]
add eax, 1
add ecx, edx
cmp eax, edi
jl 0x417e80
push 0
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [edi*4]
push ecx
lea edx, [esp + 0xc4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 8
jmp 0x417ec4
fstp st(0)
add dword [esp + 0x30], ecx
add dword [esp + 0x28], ecx
add esi, 1
cmp esi, ebx
mov dword [esp + 0x14], esi
jb 0x417da3
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.004161b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x74]
movzx esi, word [esp + 0xb0]
mov eax, dword [esp + 0x4c]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push eax
sub esi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0xa0]
push ecx
mov edi, eax
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x98]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp edi, 0xffffffff
je 0x417fdc
fld qword [esp + 0x50]
mov ebx, 0x18
fdiv qword [0x443438]
sub ebx, esi
call fcn.00427fe0
cdq
mov ecx, 0x3c
idiv ecx
lea esi, [esp + 0x90]
mov dword [esp + 0x18], 3
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x6c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ax, word [esp + 0x1c]
mov cx, word [esp + 0x24]
push esi
lea edx, [esp + 0x70]
push edx
mov word [esp + 0x7c], bx
mov word [esp + 0x7e], ax
mov word [esp + 0x80], cx
mov word [esp + 0x82], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
add esi, 8
sub dword [esp + 0x18], 1
jne 0x417f94
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x98]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x7c]
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 ebx, dword [esp + 0x68]
push ebx
call esi
push ebx
call edi
mov eax, dword [ebp + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push eax
mov dword [ebp + 0x1097a30], 1
call esi
mov ecx, dword [esp + 0x4c]
mov edx, dword [0x44f420]
push ecx
push 1
push 0x400
push edx
mov dword [ebp + 0x1097a10], 0
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x328
ret 4