Function at 0x4183d0
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.00418260
test eax, eax
je 0x418e13
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 [0x489b08]
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, 0x488b08
fld qword [ebp + 0x10cbf48]
push edx
fstp qword [esp + 0x90]
mov dword [esp + 0x28], eax
fld qword [0x479668]
mov eax, dword [0x488a6c]
fstp qword [esp + 0x1c0]
mov ecx, 0x3e
fld qword [0x479660]
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 [0x489b08]
lea ecx, [eax + 1]
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x418513
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebp + 0x1097a10]
shl eax, 9
add eax, 0x488b08
push eax
push 2
push 0x400
push edx
mov dword [0x489b08], 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.0043e710
add esp, 0xc
push esi
push 0
push edi
call fcn.0043e710
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 0x41869c
jl 0x4185d1
mov eax, dword [esp + 0x28]
cmp edx, eax
jae 0x41869c
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x40]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
jle 0x418672
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 0x418631
fld qword [esp + 0x60]
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
test ecx, ecx
fstp qword [esp + 8]
fild dword [esp + 0x2c]
jge 0x418623
fadd qword [0x479558]
mov eax, dword [esp + 0x34]
fstp qword [esp]
call fcn.00417280
jmp 0x418633
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.00402de0
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 0x4185ff
add dword [esp + 0x38], 1
mov eax, dword [esp + 0x3c]
adc eax, 0
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
jl 0x4185d1
jg 0x41869c
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x28]
jb 0x4185d1
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 0x41874e
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 0x4171e0
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 0x418710
mov edi, dword [esp + 0x20]
mov eax, edi
imul eax, eax, 0x64
mov dword [esp + 0x18], eax
jmp 0x418760
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
test edi, edi
jle 0x41878a
lea eax, [ebp + 0x10cbf70]
mov ecx, edi
lea esp, [esp]
add esi, dword [eax]
add eax, 4
sub ecx, 1
jne 0x418780
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 0x418760
test edi, edi
jle 0x4187bd
mov ecx, dword [esp + 0x20]
xor eax, eax
lea edi, [esp + 0x2b8]
rep stosd dword es:[edi], eax
test ebx, ebx
fld qword [0x479590]
mov dword [esp + 0x14], 0
jbe 0x4188c5
fld qword [esp + 0x50]
mov ecx, dword [esp + 0x34]
fdiv qword [0x479478]
mov dword [esp + 0x28], ecx
fstp qword [esp + 0x58]
mov edx, dword [esp + 0x14]
fild dword [esp + 0x14]
test edx, edx
jge 0x4187fb
fadd qword [0x479558]
fdiv qword [esp + 0x80]
fld qword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4188ab
fld qword [esp + 0x88]
fdiv qword [0x479478]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x4188ad
xor esi, esi
cmp dword [esp + 0x20], esi
jle 0x4188ad
mov edi, dword [esp + 0x28]
lea esp, [esp]
fstp st(0)
fld qword [edi]
call fcn.0046a240
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld qword [0x479590]
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 0x41887a
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 0x418895
fxch st(1)
fstp qword [esp + esi*8 + 0x1b8]
jmp 0x418897
fstp st(1)
lea eax, [ebx*8]
add esi, 1
add edi, eax
cmp esi, dword [esp + 0x20]
jl 0x418840
jmp 0x4188ad
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 0x4187e9
mov esi, dword [esp + 0x20]
xor eax, eax
cmp esi, 4
jl 0x41892e
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 0x4188d3
cmp eax, esi
jge 0x41894e
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 0x418932
xor edi, edi
test ebx, ebx
mov dword [esp + 0x14], edi
jbe 0x418a42
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 0x4189f9
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 0x4189a7
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 0x4189a3
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
cmp eax, esi
jge 0x418a26
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 0x418a0b
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 0x41896b
xor edi, edi
test esi, esi
jle 0x418a99
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.00441ca0
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 0x418a54
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.00403750
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 0x418b16
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 0x418c8b
fld qword [esp + 0x50]
mov eax, dword [esp + 0x34]
fdiv qword [0x479478]
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 0x418b67
fadd qword [0x479558]
fdiv qword [esp + 0x80]
fld qword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x418c72
fld qword [esp + 0x88]
fdiv qword [0x479478]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x418c74
xor eax, eax
cmp edi, 4
jl 0x418c19
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 0x418bcb
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
cmp eax, edi
jge 0x418c49
mov edx, dword [esp + 0x34]
mov ecx, eax
imul ecx, ebx
add ecx, esi
lea ecx, [edx + ecx*8]
jmp 0x418c30
fld qword [ecx]
lea edx, [ebx*8]
fstp dword [esp + eax*4 + 0xb8]
add eax, 1
add ecx, edx
cmp eax, edi
jl 0x418c30
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 0x418c74
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 0x418b53
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.00416ef0
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 0x418d8c
fld qword [esp + 0x50]
mov ebx, 0x18
fdiv qword [0x479478]
sub ebx, esi
call fcn.00441ca0
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 0x418d44
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 [0x488ae4]
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