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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x320
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
lea eax, [ebx + 0x10969f8]
push edx
mov ecx, ebx
mov dword [esp + 0x54], eax
call fcn.00415220
test eax, eax
je 0x416c3a
mov eax, dword [ebx + 0x10cc07c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [eax + 0xe0], esi
mov dword [eax + 0xe4], edi
mov ecx, dword [ebx + 0x10cc080]
mov dword [ecx + 0xe0], ebp
push 0
lea eax, [ebx + 0x24e8]
mov dword [ecx + 0xe4], edx
mov ecx, dword [ebx + 0x82d28]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx + 0x10cbbb4]
mov edx, ebp
sub edx, esi
sbb eax, edi
mov dword [esp + 0x50], edx
mov edx, dword [ebx + 0x10cbf3c]
mov dword [esp + 0x54], eax
fild qword [esp + 0x50]
mov dword [esp + 0x18], ecx
sub ebp, esi
mov ecx, 0x3e
fstp qword [esp + 0x58]
lea esi, [esp + 0x1b0]
fld qword [ebx + 0x10cbf40]
lea edi, [esp + 0x1b8]
fstp qword [esp + 0x50]
push 0xcc
fld qword [ebx + 0x10cbf48]
mov dword [esp + 0x28], edx
fstp qword [esp + 0x84]
fld qword [0x431b10]
fstp qword [esp + 0x1b4]
rep movsd dword es:[edi], dword [esi]
fld qword [0x431b08]
fstp qword [esp + 0xb4]
mov ecx, 0x3e
lea esi, [esp + 0xb4]
lea edi, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
call fcn.00416d90
add esp, 4
push eax
mov eax, dword [ebx + 0x1097a10]
push 2
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
imul esi, ebp
shl esi, 3
push esi
push 0x40
call edi
push eax
mov dword [esp + 0x70], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push 0x40
mov dword [esp + 0x1c], eax
call edi
push eax
mov dword [esp + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esp + 0x14]
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x2c], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x2c]
xor eax, eax
mov ecx, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x10cc078]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], ecx
fld dword [eax + 0x4ff0]
mov eax, dword [esp + 0x44]
fdivr qword [esp + 0x58]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
mov dword [esp + 0x3c], eax
fstp qword [esp + 0x60]
jg 0x416492
jl 0x4163be
mov edx, dword [esp + 0x40]
cmp edx, dword [esp + 0x30]
jae 0x416492
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x40]
test esi, esi
jle 0x41645e
fld qword [esp + 0x58]
sub esp, 0x10
test edx, edx
fstp qword [esp + 8]
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
jge 0x4163ef
fadd qword [0x430740]
mov eax, dword [esp + 0x34]
fstp qword [esp]
push eax
mov ecx, ebx
call fcn.00414e20
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
lea edx, [ecx + edx*8]
lea edi, [ebx + 0x10cbc38]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
jmp 0x416420
mov eax, dword [edi]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
dec eax
push eax
push ecx
mov ecx, dword [ebx + 0x10cc078]
push edx
call fcn.00401840
fmul dword [esp + 0x28]
mov eax, dword [esp + 0x20]
lea ecx, [ebp*8]
fstp qword [eax]
add eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
add edi, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x416420
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add edi, 1
adc eax, 0
cmp eax, ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
jl 0x4163c2
jg 0x416496
mov eax, dword [esp + 0x30]
mov ecx, edi
cmp ecx, eax
jb 0x4163c2
jmp 0x416496
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x1097a10]
push 2
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x10cbf54], edx
mov edx, dword [esp + 0x44]
mov dword [ebx + 0x10cbf58], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x10cbf60], ecx
mov ecx, dword [esp + 0x34]
xor edi, edi
test esi, esi
mov dword [ebx + 0x10cbf64], edx
mov dword [ebx + 0x10cbf68], eax
mov dword [ebx + 0x10cbf6c], ecx
mov dword [ebx + 0x10cbf5c], edi
jle 0x41655b
lea edx, [esp + 0x2b0]
lea eax, [ebx + 0x10cbf70]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
lea esp, [esp]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push 0
push eax
push 0x415620
push 0
push 0
mov dword [ecx], 0
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, 4
inc edi
add edx, eax
add ecx, eax
cmp edi, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
jl 0x416510
mov eax, esi
imul eax, eax, 0x64
mov dword [esp + 0x20], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
test esi, esi
jle 0x416588
lea eax, [ebx + 0x10cbf70]
mov ecx, esi
lea ecx, [ecx]
add edi, dword [eax]
add eax, 4
dec ecx
jne 0x416580
mov eax, edi
cdq
idiv esi
mov edx, dword [ebx + 0x1097a10]
push eax
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, dword [esp + 0x20]
jl 0x416564
test esi, esi
jle 0x4165b9
mov ecx, esi
xor eax, eax
lea edi, [esp + 0x2b0]
rep stosd dword es:[edi], eax
xor edx, edx
test ebp, ebp
mov dword [esp + 0x18], edx
jbe 0x4166a9
fld qword [0x4318d8]
mov eax, dword [esp + 0x2c]
fdiv qword [esp + 0x60]
mov dword [esp + 0x14], eax
fld qword [esp + 0x50]
fmul qword [0x431af0]
test edx, edx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
jge 0x4165f5
fadd qword [0x430740]
fmul st(2)
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x41668b
fld qword [esp + 0x80]
fmul qword [0x431af0]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x41668d
xor ecx, ecx
test esi, esi
jle 0x41668d
mov edx, dword [esp + 0x14]
lea edi, [ebp*8]
lea ecx, [ecx]
fld qword [edx]
fldlg2
fxch st(1)
fyl2x
fmul dword [0x431b00]
fst qword [esp + 0x38]
fstp qword [edx]
fld qword [esp + 0x38]
fcomp qword [esp + ecx*8 + 0xb0]
fnstsw ax
test ah, 5
jp 0x416661
fld qword [esp + 0x38]
fstp qword [esp + ecx*8 + 0xb0]
fld qword [esp + 0x38]
fcomp qword [esp + ecx*8 + 0x1b0]
fnstsw ax
test ah, 0x41
jne 0x41667e
fld qword [esp + 0x38]
fstp qword [esp + ecx*8 + 0x1b0]
inc ecx
add edx, edi
cmp ecx, esi
jl 0x416630
mov edx, dword [esp + 0x18]
jmp 0x41668d
fstp st(0)
mov ecx, dword [esp + 0x14]
inc edx
add ecx, 8
cmp edx, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
jb 0x4165e3
fstp st(0)
fstp st(0)
xor eax, eax
cmp esi, 4
jl 0x41670e
lea ecx, [esi - 3]
fld qword [esp + eax*8 + 0xb0]
add eax, 4
cmp eax, ecx
fsub qword [esp + eax*8 + 0x190]
fstp qword [esp + eax*8 + 0x90]
fld qword [esp + eax*8 + 0x98]
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]
jl 0x4166b3
cmp eax, esi
jge 0x41672c
fld qword [esp + eax*8 + 0xb0]
inc eax
cmp eax, esi
fsub qword [esp + eax*8 + 0x1a8]
fstp qword [esp + eax*8 + 0xa8]
jl 0x416712
xor edi, edi
test ebp, ebp
mov dword [esp + 0x18], edi
jbe 0x41683f
mov eax, dword [esp + 0x2c]
lea ecx, [eax + ebp*8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
lea esp, [esp]
xor eax, eax
cmp esi, 4
jl 0x4167e4
mov edx, dword [esp + 0x24]
lea edi, [edi + ebp*2]
mov ecx, ebp
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
shl ecx, 5
add edi, ebp
lea edi, [edx + edi*8]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x18]
lea edi, [edi + ebp*2]
lea edx, [edx + edi*8]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
fld qword [edi]
add eax, 4
fsub qword [esp + eax*8 + 0x190]
fstp qword [edi]
mov edi, dword [esp + 0x30]
fld qword [edx]
fsub qword [esp + eax*8 + 0x198]
fstp qword [edx]
add edx, ecx
fld qword [edi]
fsub qword [esp + eax*8 + 0x1a0]
fstp qword [edi]
mov edi, dword [esp + 0x28]
fld qword [edi]
fsub qword [esp + eax*8 + 0x1a8]
fstp qword [edi]
mov edi, dword [esp + 0x14]
add edi, ecx
mov dword [esp + 0x14], edi
add dword [esp + 0x30], ecx
add dword [esp + 0x28], ecx
lea edi, [esi - 3]
cmp eax, edi
jl 0x41678a
mov edi, dword [esp + 0x18]
cmp eax, esi
jge 0x416819
mov edx, dword [esp + 0x2c]
mov ecx, eax
imul ecx, ebp
add ecx, edi
lea ecx, [edx + ecx*8]
jmp 0x416800
fld qword [ecx]
lea edx, [ebp*8]
fsub qword [esp + eax*8 + 0x1b0]
inc eax
fstp qword [ecx]
add ecx, edx
cmp eax, esi
jl 0x416800
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, 8
inc edi
add edx, eax
add ecx, eax
cmp edi, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ecx
jb 0x416750
xor edi, edi
test esi, esi
jle 0x416898
lea eax, [ebx + 0x10cbcb8]
mov dword [esp + 0x1c], eax
nop
fld qword [esp + edi*8 + 0xb0]
mov ecx, dword [esp + 0x1c]
fabs
mov dword [ecx + 0x80], 0
fmul qword [0x431af8]
call fcn.0041bcd8
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [esp + 0x1c]
lea edx, [ecx + ecx*4]
shl edx, 2
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
inc edi
add eax, 4
cmp edi, esi
fstp dword [eax - 4]
mov dword [esp + 0x1c], eax
jl 0x416850
mov ecx, dword [ebx + 0x10cc078]
fld qword [esp + 0x58]
fdiv dword [ecx + 0x4ff0]
mov edi, dword [esp + 0x4c]
push ecx
lea eax, [ebx + 0x10cbbb4]
fstp dword [esp]
push eax
push edi
call fcn.004021d0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x416904
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
mov ecx, dword [esp + 0x20]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
test ebp, ebp
mov dword [esp + 0x18], edi
jbe 0x416aa3
fld qword [0x4318d8]
mov eax, dword [esp + 0x2c]
fdiv qword [esp + 0x60]
lea edx, [eax + ebp*8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], edx
mov ecx, 8
fstp qword [esp + 0x60]
fld qword [esp + 0x50]
fmul qword [0x431af0]
fstp qword [esp + 0x58]
test edi, edi
mov dword [esp + 0x1c], edi
fild dword [esp + 0x1c]
jge 0x416965
fadd qword [0x430740]
fmul qword [esp + 0x60]
fcom qword [esp + 0x58]
fnstsw ax
test ah, 5
jnp 0x416a80
fld qword [esp + 0x80]
fmul qword [0x431af0]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x416a82
xor eax, eax
cmp esi, 4
jl 0x416a22
mov edx, dword [esp + 0x30]
lea edi, [edi + ebp*2]
mov ecx, ebp
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
shl ecx, 5
add edi, ebp
lea edi, [edx + edi*8]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x18]
lea edi, [edi + ebp*2]
lea edx, [edx + edi*8]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
mov edi, edi
mov edi, dword [esp + 0x1c]
fld qword [edi]
mov edi, dword [esp + 0x24]
fstp dword [esp + eax*4 + 0xb0]
add eax, 4
fld qword [edx]
add edx, ecx
fstp dword [esp + eax*4 + 0xa4]
fld qword [edi]
mov edi, dword [esp + 0x28]
fstp dword [esp + eax*4 + 0xa8]
fld qword [edi]
mov edi, dword [esp + 0x1c]
add edi, ecx
fstp dword [esp + eax*4 + 0xac]
mov dword [esp + 0x1c], edi
add dword [esp + 0x24], ecx
add dword [esp + 0x28], ecx
lea edi, [esi - 3]
cmp eax, edi
jl 0x4169d0
mov edi, dword [esp + 0x18]
cmp eax, esi
jge 0x416a57
mov edx, dword [esp + 0x2c]
mov ecx, eax
imul ecx, ebp
add ecx, edi
lea ecx, [edx + ecx*8]
jmp 0x416a40
fld qword [ecx]
lea edx, [ebp*8]
fstp dword [esp + eax*4 + 0xb0]
inc eax
add ecx, edx
cmp eax, esi
jl 0x416a40
push 0
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esi*4]
push ecx
lea edx, [esp + 0xbc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 8
jmp 0x416a82
fstp st(0)
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
inc edi
add eax, ecx
add edx, ecx
cmp edi, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], edx
jb 0x416953
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.00412df0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x78]
movzx esi, word [esp + 0xa8]
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 + 0x98]
push ecx
mov ebp, eax
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x90]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp ebp, 0xffffffff
je 0x416bb3
fld qword [esp + 0x50]
mov edi, 0x18
fmul qword [0x431af0]
sub edi, esi
call fcn.0041bcd8
cdq
mov ecx, 0x3c
idiv ecx
lea esi, [esp + 0x88]
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x70]
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 + 0x74]
push edx
mov word [esp + 0x80], di
mov word [esp + 0x82], ax
mov word [esp + 0x84], cx
mov word [esp + 0x86], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x20]
add esi, 8
dec eax
mov dword [esp + 0x20], eax
jne 0x416b61
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x90]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x68]
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 + 0x6c]
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 + 0x4c]
push ecx
push 1
mov dword [ebx + 0x1097a10], 0
mov edx, dword [0x4425b4]
push 0x400
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret