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

Disassembly:
sub esp, 0x320
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [ebx + 0x10969f8]
push ebx
mov dword [esp + 0x50], eax
call fcn.00416750
test eax, eax
je 0x41731d
mov eax, dword [ebx + 0x10cc07c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
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 + 0x1c]
mov ecx, dword [ebx + 0x10cbbb4]
mov edx, ebp
sub edx, esi
sbb eax, edi
mov dword [esp + 0x4c], eax
mov eax, dword [0x43c548]
mov dword [esp + 0x48], edx
fild qword [esp + 0x48]
mov edx, dword [ebx + 0x10cbf3c]
mov dword [esp + 0x24], ecx
sub ebp, esi
fstp qword [esp + 0x50]
push pe_nt_image_headers32
fld qword [ebx + 0x10cbf40]
shl eax, 9
fstp qword [esp + 0x4c]
mov ecx, 0x3e
fld qword [ebx + 0x10cbf48]
lea esi, [esp + 0x1ac]
fstp qword [esp + 0x7c]
lea edi, [esp + 0x1b4]
fld qword [0x433de0]
add eax, 0x43b548
fstp qword [esp + 0x1ac]
rep movsd dword es:[edi], dword [esi]
fld qword [0x433dd8]
fstp qword [esp + 0xac]
push eax
mov ecx, 0x3e
lea esi, [esp + 0xb0]
lea edi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x43b4b0]
push 0xcc
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea edx, [eax + 1]
and edx, 0x80000007
jns 0x416a07
dec edx
or edx, 0xfffffff8
inc edx
shl eax, 9
add eax, 0x43b548
push eax
mov eax, dword [ebx + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x43c548], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x24]
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 + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push 0x40
mov dword [esp + 0x18], eax
call edi
push eax
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
xor eax, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
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 + 0x38]
mov dword [esp + 0x30], ecx
fld dword [eax + 0x4ff0]
mov eax, dword [esp + 0x3c]
fdivr qword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x34], eax
fstp qword [esp + 0x58]
jg 0x416b93
jl 0x416acc
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x18]
jae 0x416b93
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x38]
test esi, esi
jle 0x416b5f
fld qword [esp + 0x50]
sub esp, 0x10
test ecx, ecx
fstp qword [esp + 8]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
jge 0x416afd
fadd qword [0x433ca0]
mov eax, dword [esp + 0x30]
fstp qword [esp]
call fcn.004157d0
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x10]
lea ecx, [eax + ecx*8]
lea edi, [ebx + 0x10cbc38]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
push edx
push ecx
mov ecx, dword [ebx + 0x10cc078]
dec eax
call fcn.00402e60
fmul dword [esp + 0x28]
mov eax, dword [esp + 0xc]
lea ecx, [ebp*8]
fstp qword [eax]
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x416b22
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
add edi, 1
adc eax, 0
cmp eax, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
jl 0x416ad0
jg 0x416b97
mov edx, dword [esp + 0x18]
mov eax, edi
cmp eax, edx
jb 0x416ad0
jmp 0x416b97
mov esi, dword [esp + 0x24]
mov eax, dword [ebx + 0x1097a10]
push 2
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x10cbf54], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0x10cbf58], edx
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x10cbf60], eax
mov eax, dword [esp + 0x1c]
xor edi, edi
test esi, esi
mov dword [ebx + 0x10cbf64], ecx
mov dword [ebx + 0x10cbf68], edx
mov dword [ebx + 0x10cbf6c], eax
mov dword [ebx + 0x10cbf5c], edi
jle 0x416c5b
lea ecx, [esp + 0x2a8]
lea edx, [ebx + 0x10cbf70]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
push 0
push 0
mov dword [eax], 0
mov eax, dword [esp + 0x20]
push eax
push 0x415740
push 0
push 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 + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, 4
inc edi
add edx, eax
add ecx, eax
cmp edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
jl 0x416c10
mov eax, esi
imul eax, eax, 0x64
mov dword [esp + 0xc], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
test esi, esi
jle 0x416c88
lea eax, [ebx + 0x10cbf70]
mov ecx, esi
lea ecx, [ecx]
add edi, dword [eax]
add eax, 4
dec ecx
jne 0x416c80
mov eax, edi
cdq
idiv esi
mov ecx, dword [ebx + 0x1097a10]
push eax
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, dword [esp + 0xc]
jl 0x416c64
test esi, esi
jle 0x416cb9
mov ecx, esi
xor eax, eax
lea edi, [esp + 0x2a8]
rep stosd dword es:[edi], eax
xor edx, edx
test ebp, ebp
mov dword [esp + 0x10], edx
jbe 0x416d97
fld qword [0x433c28]
mov eax, dword [esp + 0x2c]
fdiv qword [esp + 0x58]
mov dword [esp + 0x18], eax
fld qword [esp + 0x48]
fmul qword [0x433dd0]
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x416cf5
fadd qword [0x433ca0]
fmul st(2)
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x416d79
fld qword [esp + 0x78]
fmul qword [0x433dd0]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x416d7b
xor ecx, ecx
test esi, esi
jle 0x416d7b
mov edx, dword [esp + 0x18]
lea edi, [ebp*8]
fld qword [edx]
fldlg2
fxch st(1)
fyl2x
fmul dword [0x433dc8]
fst qword [esp + 0x30]
fld qword [esp + 0x30]
fstp qword [edx]
fcom qword [esp + ecx*8 + 0xa8]
fnstsw ax
test ah, 5
jp 0x416d53
fst qword [esp + ecx*8 + 0xa8]
fcom qword [esp + ecx*8 + 0x1a8]
fnstsw ax
test ah, 0x41
jne 0x416d6a
fstp qword [esp + ecx*8 + 0x1a8]
jmp 0x416d6c
fstp st(0)
inc ecx
add edx, edi
cmp ecx, esi
jl 0x416d26
mov edx, dword [esp + 0x10]
jmp 0x416d7b
fstp st(0)
mov ecx, dword [esp + 0x18]
inc edx
add ecx, 8
cmp edx, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
jb 0x416ce3
fstp st(0)
fstp st(0)
xor eax, eax
cmp esi, 4
jl 0x416dfc
lea ecx, [esi - 3]
fld qword [esp + eax*8 + 0xa8]
add eax, 4
cmp eax, ecx
fsub qword [esp + eax*8 + 0x188]
fstp qword [esp + eax*8 + 0x88]
fld qword [esp + eax*8 + 0x90]
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]
jl 0x416da1
cmp eax, esi
jge 0x416e1a
fld qword [esp + eax*8 + 0xa8]
inc eax
cmp eax, esi
fsub qword [esp + eax*8 + 0x1a0]
fstp qword [esp + eax*8 + 0xa0]
jl 0x416e00
xor edi, edi
test ebp, ebp
mov dword [esp + 0x10], edi
jbe 0x416f2f
mov eax, dword [esp + 0x2c]
lea ecx, [eax + ebp*8]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
jmp 0x416e40
xor eax, eax
cmp esi, 4
jl 0x416eda
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
lea edi, [edi + ebp*2]
mov ecx, ebp
shl ecx, 5
add edi, ebp
lea edi, [esi + edi*8]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x10]
lea edi, [edi + ebp*2]
lea esi, [esi + edi*8]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], edi
jmp 0x416e84
mov edi, dword [esp + 0x18]
fld qword [edx]
add eax, 4
fsub qword [esp + eax*8 + 0x188]
fstp qword [edx]
add edx, ecx
fld qword [edi]
fsub qword [esp + eax*8 + 0x190]
fstp qword [edi]
mov edi, dword [esp + 0x28]
fld qword [edi]
fsub qword [esp + eax*8 + 0x198]
fstp qword [edi]
mov edi, dword [esp + 0x20]
fld qword [edi]
fsub qword [esp + eax*8 + 0x1a0]
fstp qword [edi]
mov edi, dword [esp + 0x18]
add edi, ecx
mov dword [esp + 0x18], edi
add dword [esp + 0x28], ecx
add dword [esp + 0x20], ecx
lea edi, [esi - 3]
cmp eax, edi
jl 0x416e80
mov edi, dword [esp + 0x10]
cmp eax, esi
jge 0x416f09
mov ecx, dword [esp + 0x2c]
mov edx, eax
imul edx, ebp
add edx, edi
lea ecx, [ecx + edx*8]
lea esp, [esp]
fld qword [ecx]
lea edx, [ebp*8]
fsub qword [esp + eax*8 + 0x1a8]
inc eax
fstp qword [ecx]
add ecx, edx
cmp eax, esi
jl 0x416ef0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, 8
inc edi
add edx, eax
add ecx, eax
cmp edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
jb 0x416e40
xor edi, edi
test esi, esi
jle 0x416f88
lea edx, [ebx + 0x10cbcb8]
mov dword [esp + 0xc], edx
nop
fld qword [esp + edi*8 + 0xa8]
mov eax, dword [esp + 0xc]
fabs
mov dword [eax + 0x80], 0
fmul qword [0x433dc0]
call fcn.0041d6e4
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
inc edi
add eax, 4
cmp edi, esi
fstp dword [eax - 4]
mov dword [esp + 0xc], eax
jl 0x416f40
mov esi, dword [ebx + 0x10cc078]
fld qword [esp + 0x50]
fdiv dword [esi + 0x4ff0]
mov edi, dword [esp + 0x44]
push ecx
lea eax, [ebx + 0x10cbbb4]
fstp dword [esp]
push edi
call fcn.004037f0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
jne 0x416ff7
mov edx, dword [ebx + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x1097a10], 0
pop edi
pop esi
pop ebp
add esp, 0x320
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
test ebp, ebp
mov dword [esp + 0x10], esi
jbe 0x417193
fld qword [0x433c28]
mov edi, dword [esp + 0x2c]
fdiv qword [esp + 0x58]
lea eax, [edi + ebp*8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
mov ecx, 8
fstp qword [esp + 0x58]
fld qword [esp + 0x48]
fmul qword [0x433dd0]
fstp qword [esp + 0x50]
test esi, esi
mov dword [esp + 0xc], esi
fild dword [esp + 0xc]
jge 0x417054
fadd qword [0x433ca0]
fmul qword [esp + 0x58]
fcom qword [esp + 0x50]
fnstsw ax
test ah, 5
jnp 0x41716c
fld qword [esp + 0x78]
fmul qword [0x433dd0]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x41716e
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ecx, 4
jl 0x417114
mov edx, dword [esp + 0x20]
lea esi, [esi + ebp*2]
mov ecx, ebp
shl ecx, 5
add esi, ebp
lea esi, [edi + esi*8]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x10]
lea esi, [esi + ebp*2]
lea esi, [edi + esi*8]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x28]
jmp 0x4170c0
fld qword [edx]
mov edi, dword [esp + 0xc]
fstp dword [esp + eax*4 + 0xa8]
add eax, 4
fld qword [esi]
add edx, ecx
fstp dword [esp + eax*4 + 0x9c]
add esi, ecx
fld qword [edi]
mov edi, dword [esp + 0x14]
fstp dword [esp + eax*4 + 0xa0]
fld qword [edi]
mov edi, dword [esp + 0xc]
add edi, ecx
fstp dword [esp + eax*4 + 0xa4]
mov dword [esp + 0xc], edi
add dword [esp + 0x14], ecx
mov edi, dword [esp + 0x24]
add edi, 0xfffffffd
cmp eax, edi
jl 0x4170c0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
cmp eax, dword [esp + 0x24]
jge 0x41713f
mov ecx, eax
imul ecx, ebp
add ecx, esi
lea ecx, [edi + ecx*8]
fld qword [ecx]
lea edx, [ebp*8]
add ecx, edx
fstp dword [esp + eax*4 + 0xa8]
mov edx, dword [esp + 0x24]
inc eax
cmp eax, edx
jl 0x417124
mov eax, dword [esp + 0x24]
push 0
lea edx, [esp + 0x34]
push edx
lea ecx, [eax*4]
mov eax, dword [esp + 0x20]
push ecx
lea edx, [esp + 0xb4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 8
jmp 0x41716e
fstp st(0)
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
inc esi
add eax, ecx
add edx, ecx
cmp esi, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
jb 0x417042
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
push edi
mov ecx, ebx
call fcn.00415470
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x70]
movzx esi, word [esp + 0xa0]
mov eax, dword [esp + 0x44]
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 + 0x90]
push ecx
mov ebp, eax
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x88]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp ebp, 0xffffffff
je 0x417296
fld qword [esp + 0x48]
mov edi, 0x18
fmul qword [0x433dd0]
sub edi, esi
call fcn.0041d6e4
cdq
mov ecx, 0x3c
idiv ecx
lea esi, [esp + 0x80]
mov dword [esp + 0xc], 3
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
lea ecx, [ecx]
lea edx, [esp + 0x68]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ax, word [esp + 0x14]
mov cx, word [esp + 0x20]
push esi
lea edx, [esp + 0x6c]
push edx
mov word [esp + 0x78], di
mov word [esp + 0x7a], ax
mov word [esp + 0x7c], cx
mov word [esp + 0x7e], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0xc]
add esi, 8
dec eax
mov dword [esp + 0xc], eax
jne 0x417250
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x88]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x60]
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 + 0x64]
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 + 0x44]
mov edx, dword [0x43b528]
push ecx
push 1
push 0x400
push edx
mov dword [ebx + 0x1097a10], 0
call esi
pop edi
pop esi
pop ebp
add esp, 0x320
ret